PR tree-optimization/81384 - built-in form of strnlen missing
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr58831.c
bloba40cd54d2229755492634942c66ff7af24c2dafb
1 #include <assert.h>
3 int a, *b, c, d, f, **i, p, q, *r;
4 short o, j;
6 static int __attribute__((noinline, noclone))
7 fn1 (int *p1, int **p2)
9 int **e = &b;
10 for (; p; p++)
11 *p1 = 1;
12 *e = *p2 = &d;
14 assert (r);
16 return c;
19 static int ** __attribute__((noinline, noclone))
20 fn2 (void)
22 for (f = 0; f != 42; f++)
24 int *g[3] = {0, 0, 0};
25 for (o = 0; o; o--)
26 for (; a > 1;)
28 int **h[1] = { &g[2] };
31 return &r;
34 int
35 main (void)
37 i = fn2 ();
38 fn1 (b, i);
39 return 0;