From 8a9c4edce877ee2ae2627d711d60a7e592695623 Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Thu, 17 Oct 2013 03:43:05 -0400 Subject: [PATCH] Add a test for function accumulation attribute --- tests/accumulate.qc | 15 +++++++++++++++ tests/accumulate.tmpl | 5 +++++ 2 files changed, 20 insertions(+) create mode 100644 tests/accumulate.qc create mode 100644 tests/accumulate.tmpl 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 -- 2.39.2