summaryrefslogtreecommitdiffstats
path: root/tests/preprocessor/error.slang
diff options
context:
space:
mode:
Diffstat (limited to 'tests/preprocessor/error.slang')
-rw-r--r--tests/preprocessor/error.slang13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/preprocessor/error.slang b/tests/preprocessor/error.slang
new file mode 100644
index 000000000..3e72137de
--- /dev/null
+++ b/tests/preprocessor/error.slang
@@ -0,0 +1,13 @@
+//TEST:SIMPLE:
+
+// #error support
+
+#define FIRST 0
+
+#if FIRST
+#error Not this one!
+#else
+
+#error This isn't valid!
+
+#endif