blob: 2e156f70d06952b4b0e00add8ece5d64c35e406f [file] [log] [blame]
/* This test checks that we are no instrumenting a memory access twice
(before and after inlining) */
/* { dg-do compile } */
/* { dg-options "-fno-sanitize-address-use-after-scope" } */
/* { dg-final { scan-assembler-not "__asan_report_load" } } */
__attribute__((always_inline))
inline void foo(int *x) {
*x = 0;
}
int main() {
int x;
foo(&x);
return x;
}