summaryrefslogtreecommitdiffstats
path: root/tests/preprocessor/warning.slang
diff options
context:
space:
mode:
Diffstat (limited to 'tests/preprocessor/warning.slang')
-rw-r--r--tests/preprocessor/warning.slang15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/preprocessor/warning.slang b/tests/preprocessor/warning.slang
new file mode 100644
index 000000000..7bca1959f
--- /dev/null
+++ b/tests/preprocessor/warning.slang
@@ -0,0 +1,15 @@
+//TEST:SIMPLE:
+
+// #warning support
+
+#define FIRST 1
+
+#if FIRST
+
+#warning You wouldn't like me when I'm angry...
+
+#else
+
+#warning Not this one!
+
+#endif