summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/warn-deprecated.c
blob: 84214b1f8dbdb052efb213dfce1b43c9a4cbd16e (plain)
1
2
3
4
5
6
7
// { dg-do preprocess }
// { dg-options "-std=gnu99 -fdiagnostics-show-option -Wdeprecated" }

#assert x(x)  // { dg-warning "#assert is a deprecated GCC extension .-Wdeprecated." }

#if #x(x)     // { dg-warning "assertions are a deprecated extension .-Wdeprecated." }
#endif