X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=tests%2Faccumulate.qc;fp=tests%2Faccumulate.qc;h=008626dbfdd80bada3f7a13b46f6075bc74be793;hp=0000000000000000000000000000000000000000;hb=8a9c4edce877ee2ae2627d711d60a7e592695623;hpb=4da820ef61ef6201723448802af85f50e25fd61a 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(); +}