summaryrefslogtreecommitdiffstats
path: root/tests/preprocessor/define-simple.slang
diff options
context:
space:
mode:
authorTim Foley <tfoley@nvidia.com>2017-06-12 12:42:17 -0700
committerTim Foley <tfoley@nvidia.com>2017-06-12 13:00:47 -0700
commit5b49974bd6ddd248b5ee1b1e29c0acfc3c422a3a (patch)
tree2e939a9ef7b972944b71ea3f7d11a17af844c3fe /tests/preprocessor/define-simple.slang
parentd1f11a29f8a48eecd47ac64c8635ed062cba982d (diff)
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`
Diffstat (limited to 'tests/preprocessor/define-simple.slang')
-rw-r--r--tests/preprocessor/define-simple.slang14
1 files changed, 14 insertions, 0 deletions
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