* gcc.dg/predict-12.c: New testcase.
[official-gcc.git] / gcc / testsuite / gcc.dg / cpp / warn-undef-2.c
blob15fdde95c10fb9313e9b7ae96fb0ea5b4c4d4136
1 // { dg-do preprocess }
2 // { dg-options "-std=gnu99 -fdiagnostics-show-option -Werror=undef" }
3 /* { dg-message "some warnings being treated as errors" "" {target "*-*-*"} 0 } */
4 #if x // { dg-error "\"x\" is not defined .-Werror=undef." }
5 #endif