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

#define A

#ifdef A
int foo() { return 0; }
#else
BadThing thatWontCompile;
#endif

#ifdef BadThing
AnotherError onThisLine;
#else
int bar() { return foo(); }
#endif