Complicated dg test cases

Janis Johnson janis187@us.ibm.com
Sun Feb 1 04:44:00 GMT 2004


On Sat, Jan 31, 2004 at 08:27:41PM -0800, Janis Johnson wrote:
> On Sat, Jan 31, 2004 at 04:26:24PM -0800, Matt Austern wrote:
> > 
> > Here's one way to write the test case.  What I don't know is how to put 
> > this in a form where it can become part of the dg test suite.  Any 
> > advice?
> 
> Several months ago, or maybe more than a year ago, I submitted a patch
> for the binary compatibility tests in gcc.dg/compat and g++dg/compat to
> builds pieces of a test into shared objects and static archives as well
> as relocatable object files.  It wasn't reviewed and I got sidetracked.
> There are lots of problems that could be discovered with tests like
> that.  I'll dig it up and let you take a look at it.  I'm very far
> behind with everything right now; how urgent is this for you?

Found it:  http://gcc.gnu.org/ml/gcc-patches/2002-10/msg01332.html.
It handles shared objects, not static archives, but the same sort of
thing could be done.  Combinations object types (.o, .a, and .so) for
the pieces of a test might also be useful.

Janis



More information about the Gcc mailing list