blob: e6e5d26c7998ecc8555a64ccf7c83ee5d050bb16 (
plain) (
tree)
|
|
// This test checks that we are no instrumenting a memory access twice
// (before and after inlining)
// RUN: %clangxx_asan -O1 %s -o %t && %run %t
// RUN: %clangxx_asan -O0 %s -o %t && %run %t
__attribute__((always_inline))
void foo(int *x) {
*x = 0;
}
int main() {
int x;
foo(&x);
return x;
}
|