http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53028
--- Comment #7 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2012-04-19 07:03:30 UTC --- grep -F "pedantic-errors" testsuite/gcc.dg/*.c Most of those testcases are duplicated or triplicated. Another alternative could be if -pedantic warnings always were associated to an option, then dg-warning tried to match that option. That would avoid having to add three testcases.