This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PR testsuite/25241: fixes for CPP


This patch fixes all wrong usages of dg-warning instead of dg-error
and viceversa for CPP. Most of the issues arise from the fact that
without dg-options, the default is -pedantic-errors.


2007-06-20 Manuel López-Ibáñez <manu@gcc.gnu.org>


PR testsuite/25241
* gcc.dg/cpp/20000625-1.c: Without dg-options the default is
-pedantic-errors, so we should match errors.
* gcc.dg/cpp/escape-1.c: Likewise.
* gcc.dg/cpp/charconst.c: Empty character constants are errors.
* gcc.dg/cpp/direct2.c: This is a mandatory error instead of a warning.
* gcc.dg/cpp/endif-pedantic2.c: Use -pedantic-errors to obtain errors
instead of warnings.
* gcc.dg/cpp/extratokens.c: Use dg-warning instead of dg-error for a
pedantic warning.
* gcc.dg/cpp/arith-3.c: Likewise.

Attachment: testsuite-fixes-2.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]