aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/cpp
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2025-01-17 21:00:50 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2025-01-17 21:00:50 +0100
commitd8a31b5bead0c64d7e4a59d6834bc649f68de765 (patch)
treef2f9de81633e6de401ba930f525563c77b4080f0 /gcc/testsuite/c-c++-common/cpp
parent975c4f1a5de4ede89ee9499cd1a73d613a4aeae4 (diff)
downloadgcc-d8a31b5bead0c64d7e4a59d6834bc649f68de765.zip
gcc-d8a31b5bead0c64d7e4a59d6834bc649f68de765.tar.gz
gcc-d8a31b5bead0c64d7e4a59d6834bc649f68de765.tar.bz2
testsuite: Make embed-10.c test more robust
With the https://gcc.gnu.org/pipermail/gcc-patches/2025-January/673945.html hack we get slightly different error wording in one of the errors, given that the test actually does use #embed, I think both wordings are just fine and we should accept them. 2025-01-17 Jakub Jelinek <jakub@redhat.com> * c-c++-common/cpp/embed-10.c: Allow a different error wording for C++.
Diffstat (limited to 'gcc/testsuite/c-c++-common/cpp')
-rw-r--r--gcc/testsuite/c-c++-common/cpp/embed-10.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/c-c++-common/cpp/embed-10.c b/gcc/testsuite/c-c++-common/cpp/embed-10.c
index a358384..e797f79 100644
--- a/gcc/testsuite/c-c++-common/cpp/embed-10.c
+++ b/gcc/testsuite/c-c++-common/cpp/embed-10.c
@@ -7,4 +7,4 @@ const char *p =
/* { dg-error "makes pointer from integer without a cast" "" { target c } .-2 } */
/* { dg-error "expected identifier" "" { target c } .-3 } */
/* { dg-error "invalid conversion" "" { target c++ } .-4 } */
-/* { dg-error "expected unqualified-id before numeric constant" "" { target c++ } .-5 } */
+/* { dg-error "expected unqualified-id before (?:numeric constant|'#embed')" "" { target c++ } .-5 } */