summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/cpp/20000207-2.c
blob: fbdf39e14260493614100a95486f6c774c5365de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do preprocess } */

/* Test for proper handling of unary plus in #if.  */

#if !(+1)
#error Error	/* { dg-bogus "Error" "case !(+1)" } */
#endif

#if !+1
#error Error	/* { dg-bogus "Error" "case !+1" } */
#endif

#if +1
#else
#error Error	/* { dg-bogus "Error" "case +1" } */
#endif