If you use an xfail command within a dg-do, it has no effect. E.g this generic testcase will FAIL rather than XFAIL:
/* { dg-do preprocess { xfail *-*-* } } */ #error intentional failure! int main(void) { return 0; } Right now, none of the ~100 testcases in the testsuite using this idiom are honoring it. So they're either now passing or unnecessarily cluttering up testsuite results. -- Summary: xfail within dg-do command has no effect Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: testsuite AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: ghazi at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25352