1bf215546Sopenharmony_ci#version 130
2bf215546Sopenharmony_ci
3bf215546Sopenharmony_civoid main()
4bf215546Sopenharmony_ci{
5bf215546Sopenharmony_ci  int undefinedIndex;
6bf215546Sopenharmony_ci  int undefinedIndex2;
7bf215546Sopenharmony_ci  int definedIndex = 2;
8bf215546Sopenharmony_ci  int definedIndex2 = 2;
9bf215546Sopenharmony_ci  float array[4];
10bf215546Sopenharmony_ci  float fooPos;
11bf215546Sopenharmony_ci  int fooLength;
12bf215546Sopenharmony_ci
13bf215546Sopenharmony_ci  fooPos = array[undefinedIndex];
14bf215546Sopenharmony_ci  fooPos = array[definedIndex];
15bf215546Sopenharmony_ci
16bf215546Sopenharmony_ci  fooPos = array[definedIndex+definedIndex2];
17bf215546Sopenharmony_ci  fooPos = array[undefinedIndex+undefinedIndex2];
18bf215546Sopenharmony_ci  array[0] = 10.0;
19bf215546Sopenharmony_ci  fooPos = array[definedIndex];
20bf215546Sopenharmony_ci
21bf215546Sopenharmony_ci  array[undefinedIndex2] = array[undefinedIndex];
22bf215546Sopenharmony_ci}
23bf215546Sopenharmony_ci
24