summaryrefslogtreecommitdiffstats
path: root/tests/preprocessor/if.slang
blob: fe5948c33fbd26f8a992533090e570411d6ed25a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//TEST:SIMPLE:
// #ifdef support


#if (1 - 1*2) < 0
int foo() { return 0; }
#else
BadThing thatWontCompile;
#endif

#if (1 >> 1) && ~999
AnotherError onThisLine;
#else
int bar() { return foo(); }
#endif