| 1 |
/* { dg-lto-do link } */ |
| 2 |
/* { dg-require-effective-target fpic } */ |
| 3 |
/* { dg-lto-options {{-O3 -flto -flto-partition=1to1 -fPIC -r -nostdlib}} } */ |
| 4 |
/* { dg-extra-ld-options "-flinker-output=nolto-rel" } */ |
| 5 |
|
| 6 |
struct Foo { int f1, f2, f3, f4, f5; }; |
| 7 |
|
| 8 |
int x = 0; |
| 9 |
struct Foo *foo; |
| 10 |
|
| 11 |
inline void Bar(int n){ |
| 12 |
foo[x].f1 = 0; |
| 13 |
foo[x].f2 = 0; |
| 14 |
foo[x].f3 = 0; |
| 15 |
foo[x].f4 = 0; |
| 16 |
foo[x].f5 = n; |
| 17 |
} |
| 18 |
|
| 19 |
int ei[1]; |
| 20 |
inline void Baz(int n) { |
| 21 |
if (ei[n] == 1) |
| 22 |
Bar (0); |
| 23 |
else if (ei[n] == 0) |
| 24 |
Bar (1); |
| 25 |
} |
| 26 |
|
| 27 |
void mumble(void) { |
| 28 |
for (;;) |
| 29 |
Baz (0); |
| 30 |
} |