diff options
Diffstat (limited to 'tests/preprocessor/if.spire')
| -rw-r--r-- | tests/preprocessor/if.spire | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/preprocessor/if.spire b/tests/preprocessor/if.spire new file mode 100644 index 000000000..fe5948c33 --- /dev/null +++ b/tests/preprocessor/if.spire @@ -0,0 +1,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
\ No newline at end of file |
