mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 09:06:06 +00:00

Explicitely set x86_64-linux-gnu as a target for asan-use-callbacks clang test since some target do not support -fsanitize=address (e.g. i386-pc-openbsd). Also remove redundant -fsanitize=address and move -emit-llvm right after -S. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D107633
14 lines
484 B
C++
14 lines
484 B
C++
// RUN: %clang -target x86_64-linux-gnu -S -emit-llvm -fsanitize=address \
|
|
// RUN: -o - %s \
|
|
// RUN: | FileCheck %s --check-prefixes=CHECK-NO-OUTLINE
|
|
// RUN: %clang -target x86_64-linux-gnu -S -emit-llvm -o - \
|
|
// RUN: -fsanitize=address %s -fsanitize-address-outline-instrumentation \
|
|
// RUN: | FileCheck %s --check-prefixes=CHECK-OUTLINE
|
|
|
|
// CHECK-NO-OUTLINE-NOT: call{{.*}}@__asan_load4
|
|
// CHECK-OUTLINE: call{{.*}}@__asan_load4
|
|
|
|
int deref(int *p) {
|
|
return *p;
|
|
}
|