Bug 40858 - FAIL: g++.dg/debug/dwarf2/typedef1.C
Summary: FAIL: g++.dg/debug/dwarf2/typedef1.C
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: testsuite (show other bugs)
Version: 4.5.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-25 23:03 UTC by John David Anglin
Modified: 2010-10-16 23:01 UTC (History)
1 user (show)

See Also:
Host: hppa64-hp-hpux11.11
Target: hppa64-hp-hpux11.11
Build: hppa64-hp-hpux11.11
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John David Anglin 2009-07-25 23:03:30 UTC
Executing on host: /test/gnu/gcc/objdir/gcc/testsuite/g++/../../g++ -B/test/gnu/
gcc/objdir/gcc/testsuite/g++/../../ /test/gnu/gcc/gcc/gcc/testsuite/g++.dg/debug
/dwarf2/typedef1.C  -nostdinc++ -I/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/libst
dc++-v3/include/hppa64-hp-hpux11.11 -I/test/gnu/gcc/objdir/hppa64-hp-hpux11.11/l
ibstdc++-v3/include -I/test/gnu/gcc/gcc/libstdc++-v3/libsupc++ -I/test/gnu/gcc/g
cc/libstdc++-v3/include/backward -I/test/gnu/gcc/gcc/libstdc++-v3/testsuite/util
 -fmessage-length=0  -g -dA  -S  -o typedef1.s    (timeout = 300)
PASS: g++.dg/debug/dwarf2/typedef1.C (test for excess errors)
PASS: g++.dg/debug/dwarf2/typedef1.C scan-assembler-times DW_TAG_structure_type 
2
FAIL: g++.dg/debug/dwarf2/typedef1.C scan-assembler-times DW_AT_name: "foo<1u>" 
1
PASS: g++.dg/debug/dwarf2/typedef1.C scan-assembler-times DW_TAG_enumeration_typ
e 2
FAIL: g++.dg/debug/dwarf2/typedef1.C scan-assembler-times DW_AT_name: "typedef f
oo<1u>::type type" 1
PASS: g++.dg/debug/dwarf2/typedef1.C scan-assembler-times DIE (.*) DW_TAG_enumer
ation_type 2
PASS: g++.dg/debug/dwarf2/typedef1.C scan-assembler-times "e0..".*DW_AT_name 1
PASS: g++.dg/debug/dwarf2/typedef1.C scan-assembler-times "e1..".*DW_AT_name 1

In assembler, we have:

        .ascii "typedef foo<1u>::type type\0"   ; DW_AT_name

and

        .ascii "typedef foo<1u>::type type\0"   ; DW_AT_name
Comment 1 John David Anglin 2009-08-03 17:29:34 UTC
Subject: Bug 40858

Author: danglin
Date: Mon Aug  3 17:29:17 2009
New Revision: 150375

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=150375
Log:
	PR testsuite/40858
	* g++.dg/debug/dwarf2/typedef1.C: Also match assembler string used with
	.ascii.


Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/debug/dwarf2/typedef1.C

Comment 2 John David Anglin 2009-08-03 17:37:02 UTC
Fixed.
Comment 3 John David Anglin 2010-10-16 23:01:03 UTC
Author: danglin
Date: Sat Oct 16 23:00:55 2010
New Revision: 165568

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=165568
Log:
	Backport from mainline
	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.

	2010-09-04  Andreas Schwab  <schwab@linux-m68k.org>
	* g++.dg/debug/dwarf2/typedef1.C: Replace ".*" by "\[^\n\]*".

	2009-11-07  Jason Merrill  <jason@redhat.com>

	PR c++/18451
	PR c++/40738
	* g++.dg/other/typedef1.C: Update expected errors.

	2009-08-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>

	PR testsuite/40858
	* g++.dg/debug/dwarf2/typedef1.C: Also match assembler string used with
	.ascii.


Modified:
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/debug/dwarf2/typedef1.C