1 // { dg-do preprocess }
2 // { dg-options "-std=gnu99 -fdiagnostics-show-option -Werror=cpp" { target c } }
3 // { dg-options "-fdiagnostics-show-option -Werror=cpp" { target c++ } }
4 /* { dg-message "some warnings being treated as errors" "" {target "*-*-*"} 0 } */
5 #warning "Printed"  // { dg-error "\"Printed\" .-Werror=cpp." }
6