Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/c-c++-common/asan/no-use-after-return.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-use-after-return=0" } */ | |
3 | |
4 extern void f(char *); | |
5 | |
6 int main() { | |
7 char buf[64]; | |
8 f(buf); | |
9 return 0; | |
10 } | |
11 | |
12 /* { dg-final { scan-assembler-not "__asan_option_detect_stack_use_after_return" } } */ |