This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Fix g++.dg/debug/dwarf2/typedef1.C (PR testsuite/45543)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 6 Sep 2010 11:51:19 +0200
- Subject: [committed] Fix g++.dg/debug/dwarf2/typedef1.C (PR testsuite/45543)
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
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.
--- 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 } }
Jakub