* gcc.dg/stack-check-5.c: Skip with -fstack-protector.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr67787.c
blob9d132488d45ec9acb90f4aebcc27a2af4aee34a8
1 /* { dg-do run } */
2 /* { dg-options "-O3" } */
4 int a, c, f, g;
5 char b;
7 static int
8 fn1 ()
10 char h;
11 int k = -1, i, j;
12 for (; b < 16; b++)
14 __builtin_printf (" ");
15 if (b < 5)
16 k++;
17 if (k)
19 int l = 2;
20 a = h = b < 0 || b > (127 >> l) ? b : b << 1;
21 return 0;
23 for (i = 0; i < 1; i++)
24 for (j = 0; j < 7; j++)
25 f = 0;
26 for (c = 0; c; c++)
28 if (g)
29 for (;;)
31 return 0;
34 int
35 main ()
37 fn1 ();
39 if (a != 32)
40 __builtin_abort ();
42 return 0;