xref: /aosp_15_r20/external/mesa3d/src/compiler/glsl/tests/warnings/024-shaderout.vert (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1#version 130
2
3out int fooOut;
4
5void main()
6{
7  int defined = 2;
8  int undefined;
9  int fooInt;
10
11  defined = fooOut;
12  fooOut = undefined;
13  /* Technically at this point fooOut is still undefined. But it was
14   * initialized that is what the unitialized warning detects in any
15   * case. "Real undefined" is beyond the scope of what mesa is/should
16   * detect*/
17  defined = fooOut;
18
19  gl_Position = vec4(1.0);
20}
21
22