Fix -Wreturn-type fallout in g++.dg/cpp0x/rv-trivial-bug.C on Solaris 10
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Wed, 15 Nov 2017 09:50:59 +0000 (09:50 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Wed, 15 Nov 2017 09:50:59 +0000 (09:50 +0000)
* g++.dg/cpp0x/rv-trivial-bug.C (test2): Return a value.

From-SVN: r254760

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/rv-trivial-bug.C

index e006115e8fc7557fd42704e8a4f1d03bfedff491..74d35abbc0a932250c9afe64716524e50bc9e738 100644 (file)
@@ -1,3 +1,7 @@
+2017-11-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * g++.dg/cpp0x/rv-trivial-bug.C (test2): Return a value.
+
 2017-11-15  Jakub Jelinek  <jakub@redhat.com>
 
        PR target/82981
index b729dc83df195fd40ecdf7aaf222a79d7abd0a88..09732d17cdd349653cc21ee095695a39bca1bc41 100644 (file)
@@ -24,6 +24,7 @@ int test2()
     assert(move_assign == 0);
     b = static_cast<base2&&>(b2);
     assert(move_assign == 1);
+    return 0;
 }
 
 int main()