Add a test for function accumulation attribute

This commit is contained in:
Dale Weiler 2013-10-17 03:43:05 -04:00
parent 4da820ef61
commit 8a9c4edce8
2 changed files with 20 additions and 0 deletions

15
tests/accumulate.qc Normal file
View file

@ -0,0 +1,15 @@
void foo() {
print("hello ");
}
[[accumulate]] void foo() {
print("accumulation ");
}
[[accumulate]] void foo() {
print("world\n");
}
void main() {
foo();
}

5
tests/accumulate.tmpl Normal file
View file

@ -0,0 +1,5 @@
I: accumulate.qc
D: test function accumulation
T: -execute
C: -std=gmqcc
M: hello accumulation world