On Wed, Jan 30, 2008 at 10:51:25PM +0100, Jakub Jelinek wrote: > On Wed, Jan 30, 2008 at 09:18:14PM +0000, Joern Rennecke wrote: > > However, AFAIK having multiple source files is at odds with a simple test. > > If noinline attribute doesn't help, then you can use
It doesn't. I see the symbols with nm, but the failure is no longer reproducible. > /* { dg-additional-sources "..." } */ > (just grep for dg-additional-sources in testsuite/gcc.dg/*.c to see how it is > used). Thanks, this seems to be just what I was looking for. And judging by the gcc.dg/pthread-init-* example, having a .h file sitting there would also be expected to work. Should I make my .c files also end in -1.c and -2.c instead of the descriptive names to make them conform with the apparent naming scheme there? OTOH, I was doing a find -name '*main*' on the testsuite and came up only with these monster tests, so a *main*.c name for a test that uses dg-additional-sources would have guided me in the right direction without asking.