mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 22:22:17 +00:00
array testcase for previous commit
This commit is contained in:
parent
8ce331b563
commit
b30368f026
2 changed files with 7 additions and 0 deletions
|
@ -4,3 +4,4 @@ T: -execute
|
||||||
C: -std=fteqcc
|
C: -std=fteqcc
|
||||||
M: 10 20 30 40 50 60 70
|
M: 10 20 30 40 50 60 70
|
||||||
M: 100 200 300 400 500 600 0
|
M: 100 200 300 400 500 600 0
|
||||||
|
M: 1 2 3
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
float glob1[7] = { 10, 20, 30, 40, 50, 60, 70 };
|
float glob1[7] = { 10, 20, 30, 40, 50, 60, 70 };
|
||||||
float glob2[7] = { 100, 200, 300, 400, 500, 600 };
|
float glob2[7] = { 100, 200, 300, 400, 500, 600 };
|
||||||
|
float globs[] = { 1, 2, 3 };
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
float i;
|
float i;
|
||||||
|
@ -12,4 +13,9 @@ void main() {
|
||||||
for (i = 1; i != 7; ++i)
|
for (i = 1; i != 7; ++i)
|
||||||
print(" ", ftos(glob2[i]));
|
print(" ", ftos(glob2[i]));
|
||||||
print("\n");
|
print("\n");
|
||||||
|
|
||||||
|
print(ftos(globs[0]));
|
||||||
|
for (i = 1; i != 3; ++i)
|
||||||
|
print(" ", ftos(globs[i]));
|
||||||
|
print("\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue