http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56408
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-02-20 14:54:54 UTC --- So can the modules be just moved into their own separate files and #included (or INCLUDEd)? Or add something like dg-additional-sources for module compilations, where dg.exp would compile those files ahead of compiling the particular testcase, and the testcase would contain dg-final cleanup lines for all those modules (so every test would be self-contained).