This patch adjusts the testcase to work with the now slightly different ordering of DIEs in the branch.

Brought to you by the letter "N" for "nightmare".

Committed to branch.
Aldy
commit 7996af2f984f42a9694c466ee05d5067696503cc
Author: Aldy Hernandez <al...@redhat.com>
Date:   Wed Apr 22 12:20:10 2015 -0700

    Adjust testcase for debug-early's different ordering.

diff --git a/gcc/testsuite/g++.dg/debug/dwarf2/auto1.C 
b/gcc/testsuite/g++.dg/debug/dwarf2/auto1.C
index e38334b..c04e923 100644
--- a/gcc/testsuite/g++.dg/debug/dwarf2/auto1.C
+++ b/gcc/testsuite/g++.dg/debug/dwarf2/auto1.C
@@ -10,14 +10,14 @@
 // .uleb128 0x5    # (DIE (0x4c) DW_TAG_unspecified_type)
 // .long   .LASF6  # DW_AT_name: "auto"
 //...
+// .uleb128 0x9    # (DIE (0x87) DW_TAG_base_type)
+// .ascii "int\0"  # DW_AT_name
+//...
 // .uleb128 0x7    # (DIE (0x57) DW_TAG_subprogram)
 // .long   0x33    # DW_AT_specification
 // .long   0x87    # DW_AT_type
-//...
-// .uleb128 0x9    # (DIE (0x87) DW_TAG_base_type)
-// .ascii "int\0"  # DW_AT_name
 
-// { dg-final { scan-assembler "a1.*(0x\[0-9a-f]+)\[^\n\r]*DW_AT_type.*\\1. 
DW_TAG_unspecified_type.*DW_AT_specification\[\n\r]{1,2}\[^\n\r]*(0x\[0-9a-f]+)\[^\n\r]*DW_AT_type.*\\2.
 DW_TAG_base_type" } }
+// { dg-final { scan-assembler "a1.*(0x\[0-9a-f]+)\[^\n\r]*DW_AT_type.*\\1. 
DW_TAG_unspecified_type.*(0x\[0-9a-f]+). 
DW_TAG_base_type.*DW_AT_specification\[\n\r]{1,2}\[^\n\r]*\\2\[^\n\r]*DW_AT_type"
 } }
 
 struct A
 {

Reply via email to