Merge from trunk @ 138209
[official-gcc.git] / gcc / testsuite / gcc.dg / fold-alloca-1.c
blobc464536470159da4558066f8b31d872aa009002d
1 /* { dg-do compile } */
2 /* { dg-options "-fdump-tree-cleanup_cfg1" } */
4 void *alloca (__SIZE_TYPE__);
5 void link_error ();
7 int main (int argc, char *argv[]) {
8 char *foo;
9 if ((foo = alloca(argc)) == 0)
10 link_error ();
11 return 0;
13 /* { dg-final { scan-tree-dump-times "link_error" 0 "cleanup_cfg1" } } */
14 /* { dg-final { cleanup-tree-dump "cleanup_cfg1" } } */