Hi! This testcase suffered from the same issues as cdtor-1.C testcase recently. Fixed thusly, regtested on x86_64-linux and i686-linux, committed to trunk as obvious.
2011-06-08 Jakub Jelinek <ja...@redhat.com> PR testsuite/49323 * g++.dg/debug/dwarf2/integer-typedef.C: Add -fno-merge-debug-strings to dg-options, match also DW_AT_linkage_name. --- gcc/testsuite/g++.dg/debug/dwarf2/integer-typedef.C.jj 2011-06-08 08:53:13.000000000 +0200 +++ gcc/testsuite/g++.dg/debug/dwarf2/integer-typedef.C 2011-06-08 13:48:39.000000000 +0200 @@ -1,5 +1,5 @@ // Origin: PR debug/49130 -// { dg-options "-g -dA" } +// { dg-options "-g -dA -fno-merge-debug-strings" } typedef long unsigned int size_t; static const size_t foo = 2048; @@ -24,5 +24,5 @@ main() s1.f(10); } -// { dg-final {scan-assembler-times "\[^\n\r\]*DW_AT_name: \"S<2048ul>\"" 1 } } -// { dg-final {scan-assembler-times "\[^\n\r\]*DW_AT_MIPS_linkage_name: \"_ZN1SILm2048EE1fEm\"" 1 } } +// { dg-final {scan-assembler-times "\"S<2048ul>.0\"\[^\n\r\]* DW_AT_name" 1 } } +// { dg-final {scan-assembler-times "\"_ZN1SILm2048EE1fEm.0\"\[^\n\r\]* DW_AT_\[MIPS_\]*linkage_name" 1 } } Jakub