PR tree-optimization/85826 - ICE in gimple-ssa-warn-restruct on
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / 20030917-3.c
blobd1d9c99270154fb0ff289cc9178dc20f4e3bedcd
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-ccp1" } */
4 extern int printf (const char *, ...);
6 int
7 main ()
9 int variable = 0;
10 int p = 1;
11 while (1)
13 if (p)
14 break;
15 variable = variable + 1;
16 if (variable == 10)
17 break;
19 printf("%d\n", variable);
23 /* The argument to "printf" should be a constant, not a variable. */
24 /* { dg-final { scan-tree-dump-times "printf.*, 0" 1 "ccp1"} } */