Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git] / gcc / testsuite / g++.dg / lto / 20080915_0.C
blob40c50422857bb5639972e9be41888a8d8302d7e9
1 // { dg-lto-do assemble }
2 // { dg-lto-options "-Wno-return-type" }
4 struct Foo {
5  static const int dummy;
7  int bit_field:1;
8  int dummy2:1;
9  int dummy3:1;
12 struct Bar {
13  Foo foo;
16 int func(const Bar& b) {
17  return b.foo.bit_field;
20 struct Baz {
21  Bar& operator*() { static Bar a; return a; }
24 void func1(Baz baz, int i, Bar bar) {
25  i || func(bar);
26  *baz = bar;
29 void func2(Baz baz, Bar bar) {
30  func1(baz, 0, bar);