* passes.c (ipa_write_summaries): Only modify statements if body
[official-gcc.git] / gcc / testsuite / gcc.dg / lto / 20090219_0.c
blob66fbcd11bcafc3742fe34deb655fa419a4180f67
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" } */
6 struct Foo { int f1, f2, f3, f4, f5; };
8 int x = 0;
9 struct Foo *foo;
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;
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);
27 void mumble(void) {
28 for (;;)
29 Baz (0);