]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: fix some testcases
authorJason Merrill <jason@redhat.com>
Fri, 2 May 2025 13:33:39 +0000 (09:33 -0400)
committerJason Merrill <jason@redhat.com>
Fri, 2 May 2025 13:36:58 +0000 (09:36 -0400)
commitb7e77644d1b27810c5db1944644b6c5eca74cf93
tree251cee8a249e5d9e68d0c596c769d827627ce8d5
parente6e3b0772ed40cc65a544bbe744ece62d8b9713e
c++: fix some testcases

After r16-332 these tests started failing.  constexpr-89285.C should have
always given this error, and the new nonlit19.C needs to remove the
destructor body to prevent -fimplicit-constexpr from making the testcase
well-formed.

gcc/testsuite/ChangeLog:

* g++.dg/cpp1y/constexpr-89285.C: Always diagnose reinterpret_cast.
* g++.dg/cpp23/constexpr-nonlit19.C: Remove ~A body.
gcc/testsuite/g++.dg/cpp1y/constexpr-89285.C
gcc/testsuite/g++.dg/cpp23/constexpr-nonlit19.C