Fix broken MinGW build of gcc.c
[official-gcc.git] / gcc / testsuite / gcc.dg / fold-alloca-1.c
blob733aeecca306ed50bf9faaffa8b848421ab6576b
1 /* { dg-do compile } */
2 /* { dg-options "-fdump-tree-cfg" } */
3 /* { dg-require-effective-target alloca } */
5 void *alloca (__SIZE_TYPE__);
6 void link_error ();
8 int main (int argc, char *argv[]) {
9 char *foo;
10 if ((foo = alloca(argc)) == 0)
11 link_error ();
12 return 0;
14 /* { dg-final { scan-tree-dump-times "link_error" 0 "cfg" } } */