2014-07-29 Ed Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git] / gcc / testsuite / c-c++-common / asan / no-instrument-reads.c
blobdf75878de2f45d0522256e6219798613df4e6ec8
1 /* { dg-do assemble } */
2 /* { dg-options "--param asan-instrument-reads=0 -save-temps" } */
4 volatile int ten = 10;
6 int main() {
7 volatile char x[10];
8 x[ten];
9 return 0;
12 /* { dg-final { scan-assembler-not "__asan_load" } } */
13 /* { dg-final { cleanup-saved-temps } } */