diff mbox

[committed] Fix g++.dg/debug/dwarf2/typedef1.C (PR testsuite/45543)

Message ID 20100906095119.GG1269@tyan-ft48-01.lab.bos.redhat.com
State New
Headers show

Commit Message

Jakub Jelinek Sept. 6, 2010, 9:51 a.m. UTC
Hi!

The recent change from .* to \[^\n\]* in various scan patterns caused
typedef1.C failure.
The test really expects just one DW_TAG_enumeration_type DIE, the other
DW_TAG_enumeration_type occurrence (which it tests for as well two lines
above this one) is in .debug_abbrev.
Committed as obvious.  Leaving the other failure to Uros...

2010-09-06  Jakub Jelinek  <jakub@redhat.com>

	PR testsuite/45543
	* g++.dg/debug/dwarf2/typedef1.C: Expect just one
	DW_TAG_enumeration_type DIE.


	Jakub
diff mbox

Patch

--- gcc/testsuite/g++.dg/debug/dwarf2/typedef1.C	(revision 163899)
+++ gcc/testsuite/g++.dg/debug/dwarf2/typedef1.C	(working copy)
@@ -6,7 +6,7 @@ 
 // { dg-final { scan-assembler-times "DW_AT_name: \"foo<1u>\"|\"foo<1u>..\"\[^\n\]*DW_AT_name" 1 } }
 // { dg-final { scan-assembler-times "DW_TAG_enumeration_type" 2 } }
 // { dg-final { scan-assembler-times "DW_AT_name: \"typedef foo<1u>::type type\"|\"typedef foo<1u>::type type..\"\[^\n\]*DW_AT_name" 1 } }
-// { dg-final { scan-assembler-times "DIE \\(\[^\n\]*\\) DW_TAG_enumeration_type" 2 } }
+// { dg-final { scan-assembler-times "DIE \\(\[^\n\]*\\) DW_TAG_enumeration_type" 1 } }
 // { dg-final { scan-assembler-times "\"e0..\"\[^\n\]*DW_AT_name" 1 } }
 // { dg-final { scan-assembler-times "\"e1..\"\[^\n\]*DW_AT_name" 1 } }