PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20040625-1.c
blobc426055db7265b58e41814b578e04b68515e12d5
1 /* From PR target/16176 */
2 struct __attribute__ ((packed)) s { struct s *next; };
4 struct s * __attribute__ ((noinline))
5 maybe_next (struct s *s, int t)
7 if (t)
8 s = s->next;
9 return s;
12 int main ()
14 struct s s1, s2;
16 s1.next = &s2;
17 if (maybe_next (&s1, 1) != &s2)
18 abort ();
19 exit (0);