summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/warn-cxx-compat-2.c
blob: 69c4cfa0c3e7d41a7ce83feaa141f96d05357cb4 (plain)
1
2
3
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." }