From: Dale Weiler Date: Thu, 17 Oct 2013 07:43:05 +0000 (-0400) Subject: Add a test for function accumulation attribute X-Git-Tag: 0.3.5~14 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8a9c4edce877ee2ae2627d711d60a7e592695623;p=xonotic%2Fgmqcc.git Add a test for function accumulation attribute --- diff --git a/tests/accumulate.qc b/tests/accumulate.qc new file mode 100644 index 0000000..008626d --- /dev/null +++ b/tests/accumulate.qc @@ -0,0 +1,15 @@ +void foo() { + print("hello "); +} + +[[accumulate]] void foo() { + print("accumulation "); +} + +[[accumulate]] void foo() { + print("world\n"); +} + +void main() { + foo(); +} diff --git a/tests/accumulate.tmpl b/tests/accumulate.tmpl new file mode 100644 index 0000000..a0d6bae --- /dev/null +++ b/tests/accumulate.tmpl @@ -0,0 +1,5 @@ +I: accumulate.qc +D: test function accumulation +T: -execute +C: -std=gmqcc +M: hello accumulation world