array testcase for previous commit

This commit is contained in:
Wolfgang Bumiller 2013-06-12 15:47:59 +02:00
parent 8ce331b563
commit b30368f026
2 changed files with 7 additions and 0 deletions

View file

@ -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

View file

@ -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");
}