Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / c-c++-common / asan / instrument-with-calls-2.c
blobefb481bab12fac97fd2df9350af8576827311a6e
1 /* { dg-do compile } */
2 /* { dg-options "--param asan-instrumentation-with-call-threshold=1 -ffat-lto-objects" } */
4 int x;
6 void f(int *a, int *b) {
7 *a = 0;
8 asm volatile ("" ::: "memory");
9 x = *b;
12 /* { dg-final { scan-assembler "__asan_store4" } } */
13 /* { dg-final { scan-assembler-not "__asan_report_store4" } } */
14 /* { dg-final { scan-assembler "__asan_load4" } } */
15 /* { dg-final { scan-assembler-not "__asan_report_load4" } } */