]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
noref -compile testcase
authorWolfgang (Blub) Bumiller <blub@speed.at>
Tue, 4 Dec 2012 11:50:38 +0000 (12:50 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Tue, 4 Dec 2012 11:50:38 +0000 (12:50 +0100)
tests/noref.qc [new file with mode: 0644]
tests/noref.tmpl [new file with mode: 0644]

diff --git a/tests/noref.qc b/tests/noref.qc
new file mode 100644 (file)
index 0000000..885d47e
--- /dev/null
@@ -0,0 +1,7 @@
+#pragma noref 1
+float unused_global_1;
+#pragma noref 0
+noref float unused_global_2;
+
+void() main = {
+};
diff --git a/tests/noref.tmpl b/tests/noref.tmpl
new file mode 100644 (file)
index 0000000..82f3d3d
--- /dev/null
@@ -0,0 +1,4 @@
+I: noref.qc
+D: noref keyword and pragma
+T: -compile
+C: -std=qcc -Wall -Werror