Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/fold-alloca-1.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 /* { dg-options "-fdump-tree-cfg" } */ | |
3 /* { dg-require-effective-target alloca } */ | |
4 | |
5 void *alloca (__SIZE_TYPE__); | |
6 void link_error (); | |
7 | |
8 int main (int argc, char *argv[]) { | |
9 char *foo; | |
10 if ((foo = alloca(argc)) == 0) | |
11 link_error (); | |
12 return 0; | |
13 } | |
14 /* { dg-final { scan-tree-dump-times "link_error" 0 "cfg" } } */ |