[patch/testsuite/c++] test script for PR c++/186
David Carlton
carlton@kealia.com
Mon Nov 24 17:25:00 GMT 2003
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
More information about the Gdb-patches
mailing list