]> git.xonotic.org Git - xonotic/gmqcc.git/blob - tests/var-search-order.qc
catch broken vector member access
[xonotic/gmqcc.git] / tests / var-search-order.qc
1 float a = 1000;
2 float b = 1001;
3 float c = 1002;
4
5 void test(float b) {
6         float c = 3002;
7         print(ftos(a), "\n");
8         print(ftos(b), "\n");
9         print(ftos(c), "\n");
10         {
11                 float b = 4001;
12                 print(ftos(b), "\n");
13         }
14 }
15
16 void main() {
17         test(2001);
18 }