Patchwork Fix spurious g++.dg/debug/dwarf2/nested-2.C failure

login
register
mail settings
Submitter Andreas Schwab
Date Nov. 7, 2010, 5 p.m.
Message ID <m2tyjtt6fp.fsf@igel.home>
Download mbox | patch
Permalink /patch/70364/
State New
Headers show

Comments

Andreas Schwab - Nov. 7, 2010, 5 p.m.
The g++.dg/debug/dwarf2/nested-2.C test spuriously fails on m68k because
it uses "|" to introduce comments.  Tested on powerpc-linux and
m68k-linux, checked in as obvious.

Andreas.

2010-11-07  Andreas Schwab  <schwab@linux-m68k.org>

	* g++.dg/debug/dwarf2/nested-2.C: Adjust pattern to also match "|"
	as comment character.

Patch

Index: gcc/testsuite/g++.dg/debug/dwarf2/nested-2.C
===================================================================
--- gcc/testsuite/g++.dg/debug/dwarf2/nested-2.C	(revision 166417)
+++ gcc/testsuite/g++.dg/debug/dwarf2/nested-2.C	(working copy)
@@ -32,6 +32,6 @@  We want to express that the DIE of S::T<
 
 Hence the slightly odd regexp:
 
-  { dg-final { scan-assembler "\[^\n\r\]*\\(DIE\[^\n\r\]*DW_TAG_structure_type\\)\[\n\r\]+\[^\n\r\]*\"S\\\\0\"\[ \t\]+\(@|#|!|//?\)\[ \t\]+DW_AT_name\[\n\r\]+\(.*\)?\\(DIE\[^\n\r\]*DW_TAG_structure_type\\)\[\n\r\]+\[^\n\r\]*\"T<int>\\\\0\"\[ \t\]+\(.*\)?\\(DIE\[^\n\r\]*DW_TAG_template_type_param\\)\[\n\r\]+\[^\n\r\]*\[\n\r\]+\[^\n\r\]*\[\n\r\]+\[^\n\r\]*\(@|#|!|//?\)\[ \t\]+end of children of DIE\[^\n\r\]*\[\n\r\]+\[^\n\r\]*end of children of DIE\[^\n\r\]*" } }
+  { dg-final { scan-assembler "\[^\n\r\]*\\(DIE\[^\n\r\]*DW_TAG_structure_type\\)\[\n\r\]+\[^\n\r\]*\"S\\\\0\"\[ \t\]+\(\[@|#!\]|//?\)\[ \t\]+DW_AT_name\[\n\r\]+\(.*\)?\\(DIE\[^\n\r\]*DW_TAG_structure_type\\)\[\n\r\]+\[^\n\r\]*\"T<int>\\\\0\"\[ \t\]+\(.*\)?\\(DIE\[^\n\r\]*DW_TAG_template_type_param\\)\[\n\r\]+\[^\n\r\]*\[\n\r\]+\[^\n\r\]*\[\n\r\]+\[^\n\r\]*\(\[@|#!\]|//?\)\[ \t\]+end of children of DIE\[^\n\r\]*\[\n\r\]+\[^\n\r\]*end of children of DIE\[^\n\r\]*" } }
 
  */