]> git.tdb.fi Git - libs/gl.git/blob - tests/glsl/dead_code.glsl
Make WindowView override the parameterless render function
[libs/gl.git] / tests / glsl / dead_code.glsl
1 uniform mat4 mvp;
2
3 #pragma MSP stage(vertex)
4 layout(location=0) in vec4 position;
5 void main()
6 {
7         gl_Position = mvp*position;
8         return;
9         gl_Position = position;
10 }
11
12 /* Expected diagnostic:
13 <test>:9: Unreachable code detected
14 */
15
16 /* Expected output: vertex
17 layout(location=0) uniform mat4 mvp;
18 layout(location=0) in vec4 position;
19 void main()
20 {
21         gl_Position = mvp*position;
22         return;
23 }
24 */