Re: [patch/testsuite/c++] test script for PR c++/186

David Carlton
2003-11-24T17:25:47Z

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 *) &alpha;

> 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