Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / c-c++-common / asan / force-inline-opt0-1.c
blob2e156f70d06952b4b0e00add8ece5d64c35e406f
1 /* This test checks that we are no instrumenting a memory access twice
2 (before and after inlining) */
4 /* { dg-do compile } */
5 /* { dg-options "-fno-sanitize-address-use-after-scope" } */
6 /* { dg-final { scan-assembler-not "__asan_report_load" } } */
8 __attribute__((always_inline))
9 inline void foo(int *x) {
10 *x = 0;
13 int main() {
14 int x;
15 foo(&x);
16 return x;