summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/pr22168-2.c
blob: c1e308dfcd85d1bbf0bf97ff83f5bbabf2b7eec5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Copyright (C) 2008 Free Software Foundation, Inc.  */
/* PR preprocessor/22168 */

/* { dg-do preprocess }
   { dg-options -Wdeprecated } */
#if #foo(bar)    /* { dg-warning "deprecated" } */
int x;
#else
int y;
#endif
#assert zzz(a)   /* { dg-warning "deprecated" } */
#unassert yyy    /* { dg-warning "deprecated" } */