diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp/warn-cxx-compat-2.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/cpp/warn-cxx-compat-2.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/warn-cxx-compat-2.c b/gcc/testsuite/gcc.dg/cpp/warn-cxx-compat-2.c new file mode 100644 index 000000000..69c4cfa0c --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/warn-cxx-compat-2.c @@ -0,0 +1,4 @@ +// { dg-do preprocess } +// { dg-options "-std=gnu99 -fdiagnostics-show-option -Werror=c++-compat" } +/* { dg-message "some warnings being treated as errors" "" {target "*-*-*"} 0 } */ +#define not ! // { dg-error "identifier \"not\" is a special operator name in C\\+\\+ .-Werror=c\\+\\+-compat." } |