mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-20 18:32:01 +00:00
Add a test for function accumulation attribute
This commit is contained in:
parent
4da820ef61
commit
8a9c4edce8
2 changed files with 20 additions and 0 deletions
15
tests/accumulate.qc
Normal file
15
tests/accumulate.qc
Normal 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
5
tests/accumulate.tmpl
Normal file
|
@ -0,0 +1,5 @@
|
|||
I: accumulate.qc
|
||||
D: test function accumulation
|
||||
T: -execute
|
||||
C: -std=gmqcc
|
||||
M: hello accumulation world
|
Loading…
Reference in a new issue