]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Implemented preprocessing error directive tests (should fail)
authorDale Weiler <killfieldengine@gmail.com>
Fri, 21 Dec 2012 04:48:01 +0000 (04:48 +0000)
committerDale Weiler <killfieldengine@gmail.com>
Fri, 21 Dec 2012 04:48:01 +0000 (04:48 +0000)
tests/pperror.qc [new file with mode: 0644]
tests/pperror.tmpl [new file with mode: 0644]

diff --git a/tests/pperror.qc b/tests/pperror.qc
new file mode 100644 (file)
index 0000000..b57f563
--- /dev/null
@@ -0,0 +1,5 @@
+/*
+ * Cause a compile-time error via preprocessor directive.  This code should
+ * not compile.
+ */
+#error "Fail to compile"
diff --git a/tests/pperror.tmpl b/tests/pperror.tmpl
new file mode 100644 (file)
index 0000000..bd1362f
--- /dev/null
@@ -0,0 +1,4 @@
+I: pperror.qc
+D: preprocessor #error directive
+T: -fail
+C: -std=fteqcc