summaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/cpp/warning-directive-2.c
blob: 65edd7bb9fedfacf7db3ba8945e6f065ad85f14a (plain)
1
2
3
4
5
// { dg-do preprocess }
// { dg-options "-std=gnu99 -fdiagnostics-show-option -Werror=cpp" { target c } }
// { dg-options "-fdiagnostics-show-option -Werror=cpp" { target c++ } }
/* { dg-message "some warnings being treated as errors" "" {target "*-*-*"} 0 } */
#warning "Printed"  // { dg-error "\"Printed\" .-Werror=cpp." }