Fix unused warnings.
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.c-torture / execute / 20021113-1.c
blob420926d7548b4e8cad4315993d60b9b2896cdc8f
1 /* This program tests a data flow bug that would cause constant propagation
2 to propagate constants through function calls. */
4 foo (int *p)
6 *p = 10;
9 main()
11 int *ptr = alloca (sizeof (int));
12 *ptr = 5;
13 foo (ptr);
14 if (*ptr == 5)
15 abort ();
16 exit (0);