PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / anon-1.c
blob98a9ed71d46ba6244d81cbc5f9bbc9fcd5bc5cf8
1 /* Copyright (C) 2001 Free Software Foundation, Inc. */
3 /* Source: Neil Booth, 4 Nov 2001, derived from PR 2820 - field lookup in
4 nested anonymous entities was broken. */
6 struct
8 int x;
9 struct
11 int a;
12 union
14 int b;
17 } foo;
19 int
20 main(int argc, char *argv[])
22 foo.b = 6;
23 foo.a = 5;
25 if (foo.b != 6)
26 abort ();
28 return 0;