blob: 955ce38156fb41707d321f3a33adbbb990ca8103 [file] [log] [blame]
// This test checks that we are no instrumenting a memory access twice
// (before and after inlining)
// RUN: %clangxx_asan -m64 -O1 %s -o %t && %t
// RUN: %clangxx_asan -m64 -O0 %s -o %t && %t
__attribute__((always_inline))
void foo(int *x) {
*x = 0;
}
int main() {
int x;
foo(&x);
return x;
}