Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / asan-use-callbacks.cpp
blob5805507e0a5c2bc505d65b416e9a7cdf282460bd
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
8 // CHECK-NO-OUTLINE-NOT: call{{.*}}@__asan_load4
9 // CHECK-OUTLINE: call{{.*}}@__asan_load4
11 int deref(int *p) {
12 return *p;