diff options
author | Simon Martin <simon@nasilyan.com> | 2025-01-21 10:11:12 +0100 |
---|---|---|
committer | Simon Martin <simon@nasilyan.com> | 2025-01-21 10:12:32 +0100 |
commit | f3d884da1280e211f48be0619e5d2f1ee7eeee87 (patch) | |
tree | c40d361b40957023a575e47e73b6559be67ff6be /gcc/cfgloopmanip.cc | |
parent | e5798872281de0c4c2e87587cbb562552048ccdb (diff) | |
download | gcc-f3d884da1280e211f48be0619e5d2f1ee7eeee87.zip gcc-f3d884da1280e211f48be0619e5d2f1ee7eeee87.tar.gz gcc-f3d884da1280e211f48be0619e5d2f1ee7eeee87.tar.bz2 |
testsuite: Fix test failing with -fimplicit-constexpr [PR118277]
While testing an unrelated C++ patch with "make check-c++-all", I
noticed that r15-6760-g38a13ea4117b96 added a test case that fails with
-fimplicit-constexpr.
The problem is that this test unconditionally expects an error stating
that a non-constexpr function is called, but that function is
auto-magically constexpr'd under -fimplicit-constexpr.
As suggested by Jakub, this patch simply passes -fno-implicit-constexpr
in that test.
PR c++/118277
gcc/testsuite/ChangeLog:
* g++.dg/cpp1z/constexpr-asm-5.C: Pass -fno-implicit-constexpr.
Diffstat (limited to 'gcc/cfgloopmanip.cc')
0 files changed, 0 insertions, 0 deletions