Fix all tests that fail with -sanitize=return.
authorMartin Liska <mliska@suse.cz>
Mon, 6 Nov 2017 09:02:33 +0000 (10:02 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 6 Nov 2017 09:02:33 +0000 (09:02 +0000)
commit23dbc16908cdb8335f3a9235b18bb33aa9f74dea
treefd48cb5a1501b580b1a14eeb6786e9e09b390bd7
parent1b6fa695ab5e6f6fd57ed9264b336f06f440125b
Fix all tests that fail with -sanitize=return.

2017-11-06  Martin Liska  <mliska@suse.cz>

* c-c++-common/dfp/call-by-value.c (foo32): Return a default
value of change return type to void.
(foo64): Likewise.
(foo128): Likewise.
* g++.dg/bprob/g++-bprob-1.C: Likewise.
* g++.dg/cpp0x/lambda/lambda-template.C (f): Likewise.
* g++.dg/cpp0x/range-for6.C (foo): Likewise.
* g++.dg/cpp0x/udlit-template.C: Likewise.
* g++.dg/cpp1z/eval-order3.C (struct A): Likewise.
(operator>>): Likewise.
* g++.dg/expr/cond12.C (struct X): Likewise.
(X::operator=): Likewise.
* g++.dg/gcov/gcov-1.C: Likewise.
* g++.dg/gcov/gcov-threads-1.C (ContentionNoDeadlock_thread): Likewise.
* g++.dg/ipa/devirt-21.C: Likewise.
* g++.dg/ipa/devirt-23.C: Likewise.
* g++.dg/ipa/devirt-34.C (t): Likewise.
* g++.dg/missing-return.C: New test. Likewise.
* g++.dg/opt/20050511-1.C (bar): Likewise.
* g++.dg/opt/const3.C (A::foo1): Likewise.
(A::foo2): Likewise.
* g++.dg/opt/pr23299.C (E::c): Likewise.
* g++.dg/other/copy2.C (A::operator=): Likewise.
* g++.dg/overload/addr1.C: Likewise.
* g++.dg/pr48484.C: Likewise.
* g++.dg/tls/thread_local3.C (thread_main): Likewise.
* g++.dg/tls/thread_local3g.C (thread_main): Likewise.
* g++.dg/tls/thread_local5.C (thread_main): Likewise.
* g++.dg/tls/thread_local5g.C (thread_main): Likewise.
* g++.dg/tls/thread_local6.C (thread_main): Likewise.
* g++.dg/tls/thread_local6g.C (thread_main): Likewise.
* g++.dg/torture/pr34850.C (OctetString::operator^=): Likewise.
* g++.dg/tree-prof/pr79259.C (fn2): Likewise.
* g++.dg/tree-ssa/pr33604.C (struct Value): Likewise.
* g++.dg/tree-ssa/pr81408.C (struct p): Likewise.
(av): Likewise.
* g++.dg/warn/string1.C (test): Likewise.

From-SVN: r254438
31 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/dfp/call-by-value.c
gcc/testsuite/g++.dg/bprob/g++-bprob-1.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-template.C
gcc/testsuite/g++.dg/cpp0x/range-for6.C
gcc/testsuite/g++.dg/cpp0x/udlit-template.C
gcc/testsuite/g++.dg/cpp1z/eval-order3.C
gcc/testsuite/g++.dg/expr/cond12.C
gcc/testsuite/g++.dg/gcov/gcov-1.C
gcc/testsuite/g++.dg/gcov/gcov-threads-1.C
gcc/testsuite/g++.dg/ipa/devirt-21.C
gcc/testsuite/g++.dg/ipa/devirt-23.C
gcc/testsuite/g++.dg/ipa/devirt-34.C
gcc/testsuite/g++.dg/missing-return.C [new file with mode: 0644]
gcc/testsuite/g++.dg/opt/20050511-1.C
gcc/testsuite/g++.dg/opt/const3.C
gcc/testsuite/g++.dg/opt/pr23299.C
gcc/testsuite/g++.dg/other/copy2.C
gcc/testsuite/g++.dg/overload/addr1.C
gcc/testsuite/g++.dg/pr48484.C
gcc/testsuite/g++.dg/tls/thread_local3.C
gcc/testsuite/g++.dg/tls/thread_local3g.C
gcc/testsuite/g++.dg/tls/thread_local5.C
gcc/testsuite/g++.dg/tls/thread_local5g.C
gcc/testsuite/g++.dg/tls/thread_local6.C
gcc/testsuite/g++.dg/tls/thread_local6g.C
gcc/testsuite/g++.dg/torture/pr34850.C
gcc/testsuite/g++.dg/tree-prof/pr79259.C
gcc/testsuite/g++.dg/tree-ssa/pr33604.C
gcc/testsuite/g++.dg/tree-ssa/pr81408.C
gcc/testsuite/g++.dg/warn/string1.C