1 # Check that loop analysis properly accounts for the side effects of a
2 # function call, even if that function call appears inside a nested
11 attribute vec4 piglit_vertex;
23 for (i = 0; i < 3; i++) { // Executes once, since foo() sets i to 2
24 for (int j = 0; j < 3; j++) { // Executes 3 times
28 gl_Position = piglit_vertex;
29 if (num_calls_to_foo == 3)
30 color = vec4(0.0, 1.0, 0.0, 1.0);
32 color = vec4(1.0, 0.0, 0.0, 1.0);
45 probe all rgba 0 1 0 1