gcc/testsuite/g++.dg/lto/20090311-1_1.C
raw| 1 | #include "20090311-1.h" |
| 2 | |
| 3 | struct A { |
| 4 | enum { UNO, DOS, TRES } f1_; |
| 5 | int x; |
| 6 | }; |
| 7 | |
| 8 | struct B; |
| 9 | |
| 10 | extern struct B x[]; |
| 11 | |
| 12 | struct C { |
| 13 | int x; |
| 14 | struct B *p; |
| 15 | float d; |
| 16 | }; |
| 17 | |
| 18 | extern A a; |
| 19 | extern B b; |
| 20 | extern bool flag; |
| 21 | extern C c; |
| 22 | |
| 23 | int foo() |
| 24 | { |
| 25 | if (!flag) |
| 26 | return a.x - c.x; |
| 27 | return 0; |
| 28 | } |