]> gcc.gnu.org Git - gcc.git/commit
c++: Add tests for P2621, no UB in lexer [PR110340]
authorMarek Polacek <polacek@redhat.com>
Tue, 18 Jul 2023 17:26:39 +0000 (13:26 -0400)
committerMarek Polacek <polacek@redhat.com>
Tue, 18 Jul 2023 17:32:13 +0000 (13:32 -0400)
commitfca089e8a47314a40ad93527ba9f9d0d374b3afb
tree66d79af2ae7fb8f3965212afd78e4646d811a559
parent05fc7db93452841280ddc5cdf71b33498ed576dc
c++: Add tests for P2621, no UB in lexer [PR110340]

C++26 P2621 removes UB in the lexer and either makes the construct valid
or ill-formed.  We're already handling this correctly so this patch only
adds tests.

PR c++/110340

gcc/testsuite/ChangeLog:

* g++.dg/cpp/string-4.C: New test.
* g++.dg/cpp/ucn-2.C: New test.
gcc/testsuite/g++.dg/cpp/string-4.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp/ucn-2.C [new file with mode: 0644]
This page took 0.061617 seconds and 6 git commands to generate.