1 /* { dg-do compile } */ 2 /* { dg-options "--param asan-instrumentation-with-call-threshold=1 -ffat-lto-objects" } */ 3 4 int x; 5 f(int * a,int * b)6void f(int *a, int *b) { 7 *a = 0; 8 asm volatile ("" ::: "memory"); 9 x = *b; 10 } 11 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" } } */ 16