PR middle-end/85602 - -Wsizeof-pointer-memaccess for strncat with size of source
[official-gcc.git] / gcc / testsuite / gcc.dg / pr67465.c
blob321fd38ccaffc2ce72c69760903f419f589bece5
1 /* { dg-do run } */
2 /* { dg-options "-O3 -std=gnu99" } */
4 int a, b, c, d, e, h;
6 int
7 fn1 (int p1)
10 int g[2];
11 for (int i = 0; i < 1; i++)
12 g[i] = 0;
13 if (g[0] < c)
15 a = (unsigned) (1 ^ p1) % 2;
16 return 0;
19 return 0;
22 void
23 fn2 ()
25 for (h = 0; h < 1; h++)
27 for (int j = 0; j < 2; j++)
29 for (b = 1; b; b = 0)
30 a = 1;
31 for (; b < 1; b++)
33 if (e)
34 continue;
35 a = 2;
37 fn1 (h);
38 short k = -16;
39 d = k > a;
43 int
44 main ()
46 fn2 ();
48 if (a != 2)
49 __builtin_abort ();
51 return 0;