# This test reproduces Mesa bugzilla #40857. [require] GLSL >= 1.10 [vertex shader] void main() { gl_Position = gl_Vertex; } [fragment shader] struct st1 { float f; int i; }; st1 s1; void test(void); void main() { test(); gl_FragColor = vec4(1.0, s1.f, 0.0, 1.0); } [fragment shader] struct st2 { float f; int i; }; st2 s1 = st2(0.1, 2); void test(void) { s1.f = 0.2; s1.i = 3; } [test] draw rect -1 -1 2 2 probe all rgba 1.0 0.2 0 1.0