summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/fold-alloca-1.c
blob: c464536470159da4558066f8b31d872aa009002d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-fdump-tree-cleanup_cfg1" } */

void *alloca (__SIZE_TYPE__);
void link_error ();

int main (int argc, char *argv[]) {
	char *foo;
	if ((foo = alloca(argc)) == 0)
	  link_error ();
	return 0;
}
/* { dg-final { scan-tree-dump-times "link_error" 0 "cleanup_cfg1" } } */
/* { dg-final { cleanup-tree-dump "cleanup_cfg1" } } */