]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Tests for perl-logic _types_
authorWolfgang (Blub) Bumiller <blub@speed.at>
Tue, 18 Dec 2012 15:57:38 +0000 (16:57 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Tue, 18 Dec 2012 15:57:38 +0000 (16:57 +0100)
tests/perl-logic.qc [new file with mode: 0644]
tests/perl-logic.tmpl [new file with mode: 0644]

diff --git a/tests/perl-logic.qc b/tests/perl-logic.qc
new file mode 100644 (file)
index 0000000..5b56c45
--- /dev/null
@@ -0,0 +1,8 @@
+void print(...) = #1;
+
+void main() {
+    vector va, vb;
+    string sa, sb;
+    print(__builtin_debug_typestring(va || vb), "\n");
+    print(__builtin_debug_typestring(sa || sb), "\n");
+}
diff --git a/tests/perl-logic.tmpl b/tests/perl-logic.tmpl
new file mode 100644 (file)
index 0000000..acd452d
--- /dev/null
@@ -0,0 +1,6 @@
+I: perl-logic.qc
+D: perl logic output types
+T: -execute
+C: -std=fteqcc -fperl-logic
+M: vector
+M: string