summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/warn-undef-2.c
blob: 15fdde95c10fb9313e9b7ae96fb0ea5b4c4d4136 (plain)
1
2
3
4
5
// { dg-do preprocess }
// { dg-options "-std=gnu99 -fdiagnostics-show-option -Werror=undef" }
/* { dg-message "some warnings being treated as errors" "" {target "*-*-*"} 0 } */
#if x  // { dg-error "\"x\" is not defined .-Werror=undef." }
#endif