gcc/testsuite/gcc.dg/cpp/pr22168-2.c
raw| 1 | /* Copyright (C) 2008 Free Software Foundation, Inc. */ |
| 2 | /* PR preprocessor/22168 */ |
| 3 | |
| 4 | /* { dg-do preprocess } |
| 5 | { dg-options -Wdeprecated } */ |
| 6 | #if #foo(bar) /* { dg-warning "deprecated" } */ |
| 7 | int x; |
| 8 | #else |
| 9 | int y; |
| 10 | #endif |
| 11 | #assert zzz(a) /* { dg-warning "deprecated" } */ |
| 12 | #unassert yyy /* { dg-warning "deprecated" } */ |