From 5b49974bd6ddd248b5ee1b1e29c0acfc3c422a3a Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Mon, 12 Jun 2017 12:42:17 -0700 Subject: Rename tests from `*.spire` to `*.slang` Many of the existing test cases were being skipped on accident, because their file names used `.spire` and the test tool was now looking for `.slang` --- tests/preprocessor/ifdef.slang | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/preprocessor/ifdef.slang (limited to 'tests/preprocessor/ifdef.slang') diff --git a/tests/preprocessor/ifdef.slang b/tests/preprocessor/ifdef.slang new file mode 100644 index 000000000..a3ca82838 --- /dev/null +++ b/tests/preprocessor/ifdef.slang @@ -0,0 +1,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 \ No newline at end of file -- cgit v1.2.3