mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-23 20:33:05 +00:00
Added test for variadic arguments
This commit is contained in:
parent
245908f491
commit
091173341e
3 changed files with 14 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
void(...) print = #1;
|
||||
void(string) print = #1;
|
||||
|
||||
void() main = {
|
||||
print("hello world");
|
||||
|
|
5
tests/variadic.qc
Normal file
5
tests/variadic.qc
Normal file
|
@ -0,0 +1,5 @@
|
|||
void(...) print = #1;
|
||||
|
||||
void() main = {
|
||||
print("hello", " world");
|
||||
}
|
8
tests/variadic.tmpl
Normal file
8
tests/variadic.tmpl
Normal file
|
@ -0,0 +1,8 @@
|
|||
I: variadic.qc
|
||||
D: test variadic arguments
|
||||
T: -execute
|
||||
C: -std=gmqcc
|
||||
E: $null
|
||||
F: variadic arguments failed
|
||||
S: variadic arguments worked
|
||||
M: hello world
|
Loading…
Reference in a new issue