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