diagnostic.h (diagnostic_override_option_index): New macro to set a diagnostic's...
[gcc.git] / gcc / testsuite / gcc.dg / cpp / warn-undef-2.c
1 // { dg-do preprocess }
2 // { dg-options "-std=gnu99 -fdiagnostics-show-option -Werror=undef" }
3
4 #if x // { dg-error "\"x\" is not defined .-Wundef." }
5 #endif