diff options
author | Jason Merrill <jason@redhat.com> | 2022-04-04 13:50:34 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2022-04-05 12:21:36 -0400 |
commit | 5c8d22b00adedc21f8b697dd6b990f4821a06634 (patch) | |
tree | 998173a74fd8694e758725af4f04a307b42cc856 | |
parent | b0af8e3a502a64a0e0a04cc54ef055e5d942240f (diff) | |
download | gcc-5c8d22b00adedc21f8b697dd6b990f4821a06634.zip gcc-5c8d22b00adedc21f8b697dd6b990f4821a06634.tar.gz gcc-5c8d22b00adedc21f8b697dd6b990f4821a06634.tar.bz2 |
c++: adjust testcase
This test was failing with -std=c++23 -fimplicit-constexpr (not tested by
default) due to different wording in the error message.
gcc/testsuite/ChangeLog:
* g++.dg/cpp0x/noexcept34.C: Allow more wording variation.
-rw-r--r-- | gcc/testsuite/g++.dg/cpp0x/noexcept34.C | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/g++.dg/cpp0x/noexcept34.C b/gcc/testsuite/g++.dg/cpp0x/noexcept34.C index 86129e7..963881b 100644 --- a/gcc/testsuite/g++.dg/cpp0x/noexcept34.C +++ b/gcc/testsuite/g++.dg/cpp0x/noexcept34.C @@ -9,10 +9,10 @@ template<typename> struct A bool b = true; void g () noexcept (f()) { } // { dg-error ".this. is not a constant" } void g2 () noexcept (this->f()) { } // { dg-error ".this. is not a constant" } - void g3 () noexcept (b) { } // { dg-error "use of .this. in a constant expression|use of parameter" } + void g3 () noexcept (b) { } // { dg-error "use of .this. in a constant expression|use of parameter|.this. is not a constant" } void g4 (int i) noexcept (i) { } // { dg-error "use of parameter" } void g5 () noexcept (A::f()) { } // { dg-error ".this. is not a constant" } - void g6 () noexcept (foo(b)) { } // { dg-error "use of .this. in a constant expression|use of parameter" } + void g6 () noexcept (foo(b)) { } // { dg-error "use of .this. in a constant expression|use of parameter|.this. is not a constant" } void g7 () noexcept (int{f()}) { } // { dg-error ".this. is not a constant" } }; |