Add -fdelete-null-pointer-checks to some C++ testcases.
authorSandra Loosemore <sandra@codesourcery.com>
Fri, 24 Jan 2020 19:41:31 +0000 (11:41 -0800)
committerSandra Loosemore <sandra@codesourcery.com>
Fri, 24 Jan 2020 19:41:31 +0000 (11:41 -0800)
commit7c75a2a3bfdcc2fc792d730562c677d513347d1c
tree8e1b7b27be3824a4e600f96cee6e4f85db48562b
parent28a5d5c365044710ba32510b9bec67dd40562154
Add -fdelete-null-pointer-checks to some C++ testcases.

These testcases were failing on nios2-elf, which defaults to
-fno-delete-null-pointer-checks.

2020-01-24  Sandra Loosemore  <sandra@codesourcery.com>

gcc/testsuite/
* g++.dg/cpp0x/constexpr-odr1.C: Add -fdelete-null-pointer-checks.
* g++.dg/cpp0x/constexpr-odr2.C: Likewise.
* g++.dg/cpp0x/nontype4.C: Likewise.
* g++.dg/cpp1y/constexpr-new.C: Likewise.
* g++.dg/cpp1y/new1.C: Likewise.
* g++.dg/cpp1y/new2.C: Likewise.
* g++.dg/cpp2a/constexpr-dynamic11.C: Likewise.
* g++.dg/cpp2a/constexpr-dynamic17.C: Likewise.
* g++.dg/cpp2a/constexpr-dynamic4.C: Likewise.
* g++.dg/cpp2a/constexpr-new1.C: Likewise.
* g++.dg/cpp2a/constexpr-new10.C: Likewise.
* g++.dg/cpp2a/constexpr-new2.C: Likewise.
* g++.dg/cpp2a/constexpr-new3.C: Likewise.
* g++.dg/cpp2a/constexpr-new4.C: Likewise.
* g++.dg/cpp2a/constexpr-new8.C: Likewise.
* g++.dg/cpp2a/constexpr-new9.C: Likewise.
* g++.dg/cpp2a/nontype-class1.C: Likewise.
18 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-odr1.C
gcc/testsuite/g++.dg/cpp0x/constexpr-odr2.C
gcc/testsuite/g++.dg/cpp0x/nontype4.C
gcc/testsuite/g++.dg/cpp1y/constexpr-new.C
gcc/testsuite/g++.dg/cpp1y/new1.C
gcc/testsuite/g++.dg/cpp1y/new2.C
gcc/testsuite/g++.dg/cpp2a/constexpr-dynamic11.C
gcc/testsuite/g++.dg/cpp2a/constexpr-dynamic17.C
gcc/testsuite/g++.dg/cpp2a/constexpr-dynamic4.C
gcc/testsuite/g++.dg/cpp2a/constexpr-new1.C
gcc/testsuite/g++.dg/cpp2a/constexpr-new10.C
gcc/testsuite/g++.dg/cpp2a/constexpr-new2.C
gcc/testsuite/g++.dg/cpp2a/constexpr-new3.C
gcc/testsuite/g++.dg/cpp2a/constexpr-new4.C
gcc/testsuite/g++.dg/cpp2a/constexpr-new8.C
gcc/testsuite/g++.dg/cpp2a/constexpr-new9.C
gcc/testsuite/g++.dg/cpp2a/nontype-class1.C