PR tree-optimization/84740
[official-gcc.git] / gcc / testsuite / gcc.dg / lto / 20090219_0.c
blob985c884cecd7f2a61ecdea6959607b8cd7099992
1 /* { dg-lto-do link } */
2 /* { dg-require-effective-target fpic } */
3 /* { dg-lto-options {{-O3 -flto -flto-partition=1to1 -fPIC -r -nostdlib}} } */
5 struct Foo { int f1, f2, f3, f4, f5; };
7 int x = 0;
8 struct Foo *foo;
10 inline void Bar(int n){
11 foo[x].f1 = 0;
12 foo[x].f2 = 0;
13 foo[x].f3 = 0;
14 foo[x].f4 = 0;
15 foo[x].f5 = n;
18 int ei[1];
19 inline void Baz(int n) {
20 if (ei[n] == 1)
21 Bar (0);
22 else if (ei[n] == 0)
23 Bar (1);
26 void mumble(void) {
27 for (;;)
28 Baz (0);