gcc/testsuite/c-c++-common/asan/instrument-with-calls-3.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "--param asan-instrumentation-with-call-threshold=0 -ffat-lto-objects" } */ |
| 3 | |
| 4 | struct A { |
| 5 | char x[7]; |
| 6 | }; |
| 7 | |
| 8 | void f(struct A *x, struct A *y) { |
| 9 | *x = *y; |
| 10 | } |
| 11 | |
| 12 | /* { dg-final { scan-assembler "__asan_loadN" } } */ |
| 13 | /* { dg-final { scan-assembler "__asan_storeN" } } */ |
| 14 |