aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/c11-elifdef-1.c
blob: 2d5809a8378c733fe176cf5994a72d329dd46bf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* Test #elifdef and #elifndef not in C11.  */
/* { dg-do preprocess } */
/* { dg-options "-std=c11 -pedantic-errors" } */

#define A
#undef B

#if 0
#elifdef A
#error "#elifdef A applied"
#endif

#if 0
#elifndef B
#error "#elifndef B applied"
#endif