testsuite: Fix recently added ipa testcases [PR93763]
authorJakub Jelinek <jakub@redhat.com>
Tue, 25 Feb 2020 08:05:57 +0000 (09:05 +0100)
committerJakub Jelinek <jakub@redhat.com>
Tue, 25 Feb 2020 08:05:57 +0000 (09:05 +0100)
commit103bc4db7665a03bf2390ccc8ceca0dc5a7a81b7
tree79cefa33fb6642c6faf6ec1626ac1f789ba7a7c6
parent7b60f3ba7660ad8697843ed8d0198449b9ea0a90
testsuite: Fix recently added ipa testcases [PR93763]

Seems the test has been badly reduced (if the original doesn't emit
warnings, it is always better in the reduction script avoid introducing new
ones).
Also, the g++.dg/ipa/ test fails with -std=c++98 because it is written in
C++11.

2020-02-25  Jakub Jelinek  <jakub@redhat.com>

PR ipa/93763
* gcc.dg/ipa/pr93763.c: Adjust the test so that it compiles without
warnings and still ICEs before the ipa-cp.c fix.
* g++.dg/ipa/pr93763.C: Require c++11 effective target.
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/pr93763.C
gcc/testsuite/gcc.dg/ipa/pr93763.c