]> git.xonotic.org Git - xonotic/gmqcc.git/blob - tests/param8.qc
Cleanups
[xonotic/gmqcc.git] / tests / param8.qc
1 void p10(float a, float b, float c, float d, float e, float f, float g, float h,
2          float e1, float e2)
3 {
4     print(ftos(a),  " ", ftos(b), " ", ftos(c), " ");
5     print(ftos(d),  " ", ftos(e), " ", ftos(f), " ");
6     print(ftos(g),  " ", ftos(h), " ");
7     print(ftos(e1), " ", ftos(e2), "\n");
8 }
9
10 void overwrite(float a, float b, float c, float d, float e, float f, float g, float h,
11                float e1, float e2)
12 {
13     // call >8 param functions within a >8 param function and see if the locals
14     // are actual copies
15     p10(a, b, c, d, e, f, g, h, e1, e2);
16     p10(1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
17     p10(a, b, c, d, e, f, g, h, e1, e2);
18 }
19
20 void main() {
21     overwrite(10, 20, 30, 40, 50, 60, 70, 80, 90, 100);
22 }