]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Testsuite, DWARF2: adjust regexp to match darwin output
authorFrancois-Xavier Coudert <fxcoudert@gmail.com>
Sun, 20 Aug 2023 10:53:19 +0000 (12:53 +0200)
committerFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Fri, 29 Sep 2023 16:53:41 +0000 (18:53 +0200)
gcc/testsuite/ChangeLog:

* gcc.dg/debug/dwarf2/inline4.c: Ajdust regexp to match darwin
output.

gcc/testsuite/gcc.dg/debug/dwarf2/inline4.c

index 2faef6e2a4f0e25990786183037862271f00dfb6..22eb35fcf096e7c726c31fad4106ee8ce8e52f22 100644 (file)
@@ -2,7 +2,7 @@
    the DW_TAG_inlined_subroutine and the DW_TAG_variable for the local.  */
 /* { dg-options "-O -gdwarf -dA" } */
 /* { dg-do compile } */
-/* { dg-final { scan-assembler "DW_TAG_inlined_subroutine\[^\\(\]*\\(\[^\\)\]*\\)\[^\\(\]*\\(DIE \\(0x\[0-9a-f\]*\\) DW_TAG_formal_parameter\[^\\(\]*\\(DIE \\(0x\[0-9a-f\]*\\) DW_TAG_variable" } } */
+/* { dg-final { scan-assembler "DW_TAG_inlined_subroutine\[^\\(\]*\(\|\\(\[^\\)\]*\\)\)\[^\\(\]*\\(DIE \\(0x\[0-9a-f\]*\\) DW_TAG_formal_parameter\[^\\(\]*\\(DIE \\(0x\[0-9a-f\]*\\) DW_TAG_variable" } } */
 /* { dg-final { scan-assembler-times "DW_TAG_inlined_subroutine" 2 } } */
 
 static int foo (int i)