gmqcc/tests/var-search-order.qc
Wolfgang Bumiller f84c8ea629 add variable search order test
Signed-off-by: Wolfgang Bumiller <wry.git@bumiller.com>
2018-01-14 09:33:05 +01:00

18 lines
236 B
C++

float a = 1000;
float b = 1001;
float c = 1002;
void test(float b) {
float c = 3002;
print(ftos(a), "\n");
print(ftos(b), "\n");
print(ftos(c), "\n");
{
float b = 4001;
print(ftos(b), "\n");
}
}
void main() {
test(2001);
}