Support "//" as assembler comments.
authorH.J. Lu <hongjiu.lu@intel.com>
Sun, 25 Jul 2010 14:54:03 +0000 (14:54 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Sun, 25 Jul 2010 14:54:03 +0000 (07:54 -0700)
2010-07-25  H.J. Lu  <hongjiu.lu@intel.com>

PR testsuite/45068
* g++.dg/debug/dwarf2/nested-2.C: Support "//" as comments.

From-SVN: r162511

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/debug/dwarf2/nested-2.C

index 80ed431..8f722ed 100644 (file)
@@ -1,3 +1,8 @@
+2010-07-25  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR testsuite/45068
+       * g++.dg/debug/dwarf2/nested-2.C: Support "//" as comments.
+
 2010-07-24  Richard Guenther  <rguenther@suse.de>
 
        PR lto/43788
index 2386baa..b98d80d 100644 (file)
@@ -32,6 +32,6 @@ We want to express that the DIE of S::T<int> must be a child of the DIE of S, li
 
 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\]*" } }
 
  */