]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: Fix up unevalstr2.C test
authorJakub Jelinek <jakub@redhat.com>
Fri, 4 Oct 2024 13:24:24 +0000 (15:24 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 4 Oct 2024 13:24:24 +0000 (15:24 +0200)
commitc679cafb0d7e58fd699f9f73e736417765f349bc
tree120f30b8a57d54675d91122e74076d6a3af8ba55
parentf000cb8cbc58b23a91c84d47d69481904981a1d9
testsuite: Fix up unevalstr2.C test

The CWG2521 changes adjusted the unevalstr1.C test but didn't adjust
unevalstr2.C test, which now FAILs in C++23 mode.

The intent in both of those tests was to test the separate (now deprecated)
syntax, so instead of removing the space between closing " and _ I've
adjusted the testcase to expect those 17 extra warnings.  And I've also
adjusted the unevalstr1.C testcase to do the same, when it is removed from
C++29 or whatever, that can be just guarded by #if.

But it is actually useful to also test the UDL variant without space between
closing " and _, so I've added new test coverage for that too to both tests.

2024-10-04  Jakub Jelinek  <jakub@redhat.com>

* g++.dg/cpp26/unevalstr1.C: Revert the 2024-10-03 changes, instead
expect extra warnings.  Add another set of tests without space
between " and _.
* g++.dg/cpp26/unevalstr2.C: Expect extra warnings for C++23.  Add
another set of tests without space between " and _.
gcc/testsuite/g++.dg/cpp26/unevalstr1.C
gcc/testsuite/g++.dg/cpp26/unevalstr2.C