OSDN Git Service

2009-05-19 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.c-torture / compile / pr38564.c
1 struct S
2 {
3   struct S *n, *p;
4 } *s;
5
6 void bar (void *);
7
8 int
9 foo (int x)
10 {
11   struct S p = { &p, &p };
12   int i;
13   for (i = 0; i < x; i++)
14     bar (s);
15   return p.n == &p;
16 }
17
18 int dialog_calendar(int state)
19 {
20   int *obj = (state == 1 ? &state : 0);
21   return (obj == &state);
22 }