PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20070212-1.c
blobefda7f9cf66867f256f5d0e34a683951f41aeb14
1 struct f
3 int i;
4 };
6 int g(int i, int c, struct f *ff, int *p)
8 int *t;
9 if (c)
10 t = &i;
11 else
12 t = &ff->i;
13 *p = 0;
14 return *t;
17 extern void abort(void);
19 int main()
21 struct f f;
22 f.i = 1;
23 if (g(5, 0, &f, &f.i) != 0)
24 abort ();
25 return 0;