From f46e633262cb87526469b3340b298fc523f5b32b Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Wed, 15 Nov 2017 09:50:59 +0000 Subject: [PATCH] Fix -Wreturn-type fallout in g++.dg/cpp0x/rv-trivial-bug.C on Solaris 10 * g++.dg/cpp0x/rv-trivial-bug.C (test2): Return a value. From-SVN: r254760 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/g++.dg/cpp0x/rv-trivial-bug.C | 1 + 2 files changed, 5 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e006115e8fc..74d35abbc0a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2017-11-15 Rainer Orth + + * g++.dg/cpp0x/rv-trivial-bug.C (test2): Return a value. + 2017-11-15 Jakub Jelinek PR target/82981 diff --git a/gcc/testsuite/g++.dg/cpp0x/rv-trivial-bug.C b/gcc/testsuite/g++.dg/cpp0x/rv-trivial-bug.C index b729dc83df1..09732d17cdd 100644 --- a/gcc/testsuite/g++.dg/cpp0x/rv-trivial-bug.C +++ b/gcc/testsuite/g++.dg/cpp0x/rv-trivial-bug.C @@ -24,6 +24,7 @@ int test2() assert(move_assign == 0); b = static_cast(b2); assert(move_assign == 1); + return 0; } int main() -- 2.30.2