aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2024-07-26 21:01:03 +0200
committerThomas Koenig <tkoenig@gcc.gnu.org>2024-07-28 19:06:01 +0200
commitc38ba39b3efbaffa28f1669ac8a724e988b0ea53 (patch)
tree1fcd7c75fe415a67322ecedacccbb53af9bf4c32 /gcc
parentfecd62edad9f9649e2e7f52d5520cd10a4c52d8a (diff)
downloadgcc-c38ba39b3efbaffa28f1669ac8a724e988b0ea53.zip
gcc-c38ba39b3efbaffa28f1669ac8a724e988b0ea53.tar.gz
gcc-c38ba39b3efbaffa28f1669ac8a724e988b0ea53.tar.bz2
testsuite: Fix up ucn-1.C for C++26
On Fri, Jul 26, 2024 at 11:43:13AM -0400, Jason Merrill wrote: > I'm now seeing a -std=c++26 failure on g++.dg/cpp/ucn-1.C. I don't remember seeing it when I wrote the patch, but today I see it as well. 2024-07-26 Jakub Jelinek <jakub@redhat.com> * g++.dg/cpp/ucn-1.C (main): Expect error on c\u0024c identifier also for C++26.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/g++.dg/cpp/ucn-1.C2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.dg/cpp/ucn-1.C b/gcc/testsuite/g++.dg/cpp/ucn-1.C
index 9596a42..8277d2e 100644
--- a/gcc/testsuite/g++.dg/cpp/ucn-1.C
+++ b/gcc/testsuite/g++.dg/cpp/ucn-1.C
@@ -9,7 +9,7 @@ int main()
int c\u0041c; // { dg-error "not valid in an identifier" }
// $ is OK on most targets; not part of basic source char set
- int c\u0024c; // { dg-error "not valid in an identifier" "" { target { powerpc-ibm-aix* } } }
+ int c\u0024c; // { dg-error "not valid in an identifier" "" { target { { powerpc-ibm-aix* } || c++26 } } }
U"\uD800"; // { dg-error "not a valid universal character" }