(root)/
gcc-13.2.0/
gcc/
testsuite/
c-c++-common/
asan/
instrument-with-calls-2.c
       1  /* { dg-do compile } */
       2  /* { dg-options "--param asan-instrumentation-with-call-threshold=1 -ffat-lto-objects" } */
       3  
       4  int x;
       5  
       6  void 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" } } */