Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/c-c++-common/asan/no-instrument-writes.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* { dg-do compile } */ | |
2 /* { dg-options "--param asan-instrument-writes=0" } */ | |
3 | |
4 volatile int ten = 10; | |
5 | |
6 int main() { | |
7 volatile char x[10]; | |
8 x[ten] = 1; | |
9 return 0; | |
10 } | |
11 | |
12 /* { dg-final { scan-assembler-not "__asan_store" } } */ |