diff --git a/tests/varargs.qc b/tests/varargs.qc index ffe7d1b..89cb5b8 100644 --- a/tests/varargs.qc +++ b/tests/varargs.qc @@ -9,6 +9,15 @@ void nbva(float a, string...count) { print("Vararg ", ftos(a), " = ", ...(a, string), "\n"); } +var void unstable(...); +void stability(float a, float b, ...count) +{ + print("Got: ", ftos(count), "\n"); +} + void main() { nbva(1, "Hello", "You", "There"); + stability(1, 2, 3, 4, 5); + unstable = stability; + unstable(1, 2, 3, 4, 5); } diff --git a/tests/varargs.tmpl b/tests/varargs.tmpl index d8130a8..29de939 100644 --- a/tests/varargs.tmpl +++ b/tests/varargs.tmpl @@ -8,3 +8,5 @@ M: You chose: You M: Vararg 0 = Hello M: Vararg 1 = You M: Vararg 2 = There +M: Got: 3 +M: Got: 3