https://gcc.gnu.org/g:d8a31b5bead0c64d7e4a59d6834bc649f68de765

commit r15-7007-gd8a31b5bead0c64d7e4a59d6834bc649f68de765
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Fri Jan 17 21:00:50 2025 +0100

    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  <ja...@redhat.com>
    
            * c-c++-common/cpp/embed-10.c: Allow a different error wording for
            C++.

Diff:
---
 gcc/testsuite/c-c++-common/cpp/embed-10.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/c-c++-common/cpp/embed-10.c 
b/gcc/testsuite/c-c++-common/cpp/embed-10.c
index a358384ae3d4..e797f795ea57 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 } */

Reply via email to