aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/tests/warnings/002-loop.vert
blob: de05d9c722b30886958305cb30b38aa324ebc444 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#version 130

void main()
{
   int i;
   int undefined;
   int undefined2;
   int defined = 2;
   float fooFloat;

   for (i = 0; i < undefined; i++) {
      fooFloat = 10.0;
   }

   for (; undefined < undefined2; i++) {
      fooFloat = 10.0;
   }

   for (i = 0; i < defined; i++) {
      fooFloat = 10.0;
   }
}