]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - tests/accumulate.qc
Add a test for function accumulation attribute
[xonotic/gmqcc.git] / tests / accumulate.qc
diff --git a/tests/accumulate.qc b/tests/accumulate.qc
new file mode 100644 (file)
index 0000000..008626d
--- /dev/null
@@ -0,0 +1,15 @@
+void foo() {
+    print("hello ");
+}
+
+[[accumulate]] void foo() {
+    print("accumulation ");
+}
+
+[[accumulate]] void foo() {
+    print("world\n");
+}
+
+void main() {
+    foo();
+}