Added test for variadic arguments

This commit is contained in:
Dale Weiler 2012-11-19 02:11:24 +00:00
parent 245908f491
commit 091173341e
3 changed files with 14 additions and 1 deletions

View file

@ -1,4 +1,4 @@
void(...) print = #1;
void(string) print = #1;
void() main = {
print("hello world");

5
tests/variadic.qc Normal file
View file

@ -0,0 +1,5 @@
void(...) print = #1;
void() main = {
print("hello", " world");
}

8
tests/variadic.tmpl Normal file
View 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