diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/lto/pr65549_0.C')
-rw-r--r-- | gcc/testsuite/g++.dg/lto/pr65549_0.C | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/testsuite/g++.dg/lto/pr65549_0.C b/gcc/testsuite/g++.dg/lto/pr65549_0.C index 889cc994a58..d3ed1dca158 100644 --- a/gcc/testsuite/g++.dg/lto/pr65549_0.C +++ b/gcc/testsuite/g++.dg/lto/pr65549_0.C @@ -1,5 +1,5 @@ // { dg-lto-do link } -// { dg-lto-options { { -std=gnu++14 -flto -g } { -std=gnu++14 -flto -g -O2 -fno-inline -flto-partition=max } } } +// { dg-lto-options { { -std=gnu++14 -flto -g -Wno-return-type } { -std=gnu++14 -flto -g -O2 -fno-inline -flto-partition=max -Wno-return-type } } } // { dg-extra-ld-options "-r -nostdlib" } namespace std { @@ -135,10 +135,12 @@ public: then(0, [] {}); } } clients; -main() { +int main() { B app; app.run(0, 0, [&] { auto config = app.configuration()[0].as<std::string>(); clients.then([] {}); }); + + return 0; } |