1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
  
     | 
    
      # This test reproduces Mesa bugzilla #34203.
[require]
GLSL >= 1.10
[vertex shader]
void main()
{
	gl_Position = gl_Vertex;
}
[fragment shader]
void f01(inout float f);
void f02(inout float f);
void f06(inout float f);
void f10(inout float f);
void f14(inout float f);
void main()
{
	float g;
	f01(g);
	gl_FragColor = vec4(g, 0, 0, 1.0);
}
void f01(inout float f) {f02(f);}
void f05(inout float f) {f06(f);}
void f09(inout float f) {f10(f);}
void f13(inout float f) {f14(f);}
[fragment shader]
void f03(inout float f);
void f07(inout float f);
void f11(inout float f);
void f15(inout float f);
void f02(inout float f) {f03(f);}
void f06(inout float f) {f07(f);}
void f10(inout float f) {f11(f);}
void f14(inout float f) {f15(f);}
[fragment shader]
void f04(inout float f);
void f08(inout float f);
void f12(inout float f);
void f16(inout float f);
void f03(inout float f) {f04(f);}
void f07(inout float f) {f08(f);}
void f11(inout float f) {f12(f);}
void f15(inout float f) {f16(f);}
[fragment shader]
void f05(inout float f);
void f09(inout float f);
void f13(inout float f);
void f04(inout float f) {f05(f);}
void f08(inout float f) {f09(f);}
void f12(inout float f) {f13(f);}
void f16(inout float f) {f=0.2;}
[test]
draw rect -1 -1 2 2
probe all rgba 0.2 0 0 1.0
 
     |