Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.dg / lto / 20090219_0.c
blob81a93e6da53ff23d1232ec09174518bd2d9ea337
1 /* { dg-lto-do link } */
2 /* { dg-lto-options {{-O3 -flto -flto-partition=1to1 -fPIC -r -nostdlib}} } */
4 struct Foo { int f1, f2, f3, f4, f5; };
6 int x = 0;
7 struct Foo *foo;
9 inline void Bar(int n){
10 foo[x].f1 = 0;
11 foo[x].f2 = 0;
12 foo[x].f3 = 0;
13 foo[x].f4 = 0;
14 foo[x].f5 = n;
17 int ei[1];
18 inline void Baz(int n) {
19 if (ei[n] == 1)
20 Bar (0);
21 else if (ei[n] == 0)
22 Bar (1);
25 void mumble(void) {
26 for (;;)
27 Baz (0);