diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/lto/20080915_0.C')
-rw-r--r-- | gcc/testsuite/g++.dg/lto/20080915_0.C | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.dg/lto/20080915_0.C b/gcc/testsuite/g++.dg/lto/20080915_0.C index 3789765a964..40c50422857 100644 --- a/gcc/testsuite/g++.dg/lto/20080915_0.C +++ b/gcc/testsuite/g++.dg/lto/20080915_0.C @@ -1,4 +1,6 @@ // { dg-lto-do assemble } +// { dg-lto-options "-Wno-return-type" } + struct Foo { static const int dummy; @@ -16,7 +18,7 @@ int func(const Bar& b) { } struct Baz { - Bar& operator*() {} + Bar& operator*() { static Bar a; return a; } }; void func1(Baz baz, int i, Bar bar) { |