mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 14:12:36 +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
|
||||
M: 10 20 30 40 50 60 70
|
||||
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 glob2[7] = { 100, 200, 300, 400, 500, 600 };
|
||||
float globs[] = { 1, 2, 3 };
|
||||
|
||||
void main() {
|
||||
float i;
|
||||
|
@ -12,4 +13,9 @@ void main() {
|
|||
for (i = 1; i != 7; ++i)
|
||||
print(" ", ftos(glob2[i]));
|
||||
print("\n");
|
||||
|
||||
print(ftos(globs[0]));
|
||||
for (i = 1; i != 3; ++i)
|
||||
print(" ", ftos(globs[i]));
|
||||
print("\n");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue