xref: /llvm-project/clang/test/CodeGen/asan-use-callbacks.cpp (revision 1397e19129ef7aa6c2ba6f6018ff172a5022a1eb)
1 // RUN: %clang -target x86_64-linux-gnu -S -emit-llvm -fsanitize=address \
2 // RUN:     -o - %s \
3 // RUN:     | FileCheck %s --check-prefixes=CHECK-NO-OUTLINE
4 // RUN: %clang -target x86_64-linux-gnu -S -emit-llvm -o - \
5 // RUN:     -fsanitize=address %s -fsanitize-address-outline-instrumentation \
6 // RUN:     | FileCheck %s --check-prefixes=CHECK-OUTLINE
7 
8 // CHECK-NO-OUTLINE-NOT: call{{.*}}@__asan_load4
9 // CHECK-OUTLINE: call{{.*}}@__asan_load4
10 
deref(int * p)11 int deref(int *p) {
12   return *p;
13 }
14