summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/warn-deprecated-2.c
blob: 8bd608ab7945a7faf82f24a62adf56eb297b6787 (plain)
1
2
3
4
5
6
7
// { dg-do preprocess }
// { dg-options "-std=gnu99 -fdiagnostics-show-option -Werror=deprecated" }
/* { dg-message "some warnings being treated as errors" "" {target "*-*-*"} 0 } */
#assert x(x)  // { dg-error "#assert is a deprecated GCC extension .-Werror=deprecated." }

#if #x(x)     // { dg-error "assertions are a deprecated extension .-Werror=deprecated." }
#endif