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/define-simple.slang | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/preprocessor/define-simple.slang (limited to 'tests/preprocessor/define-simple.slang') diff --git a/tests/preprocessor/define-simple.slang b/tests/preprocessor/define-simple.slang new file mode 100644 index 000000000..26436b258 --- /dev/null +++ b/tests/preprocessor/define-simple.slang @@ -0,0 +1,14 @@ +//TEST:SIMPLE: +// #define support + +#define FOO 1.0f + +float foo() { return FOO + 2.0; } + +#define BAR 99 + +#if BAR > 10 +int bar() { return 0; } +#else +BadThing shouldntCompile; +#endif -- cgit v1.2.3