This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch/testsuite/c++] test script for PR c++/186
- From: David Carlton <carlton at kealia dot com>
- To: mec dot gnu at mindspring dot com (Michael Elizabeth Chastain)
- Cc: drow at mvista dot com, gdb-patches at sources dot redhat dot com
- Date: Mon, 24 Nov 2003 09:25:46 -0800
- Subject: Re: [patch/testsuite/c++] test script for PR c++/186
- References: <20031123230016.C6B614B409@berman.michael-chastain.com>
On Sun, 23 Nov 2003 18:00:16 -0500 (EST), mec.gnu@mindspring.com (Michael Elizabeth Chastain) said:
> Hmmm, my test would be more clear if I made B::~B write something into
> the data fields. I will do that.
If we're worried about optimizing compiliers, then I bet this would
make the script more fragile. But I suppose that's mostly irrelevant
for purposes of the test suite.
> I will also add some tests like this:
> A alpha;
> ...
> (gdb) print (B *) α
> I think that's actually the heart and these issues with destructors
> and scope are peripheral.
Yeah, that's a good idea.
David Carlton
carlton@kealia.com