]> git.xonotic.org Git - xonotic/gmqcc.git/blob - tests/accumulate.qc
Add a test for function accumulation attribute
[xonotic/gmqcc.git] / tests / accumulate.qc
1 void foo() {
2     print("hello ");
3 }
4
5 [[accumulate]] void foo() {
6     print("accumulation ");
7 }
8
9 [[accumulate]] void foo() {
10     print("world\n");
11 }
12
13 void main() {
14     foo();
15 }