]> git.tdb.fi Git - libs/gl.git/blob - tests/glsl/identifier_conflict.glsl
3e10089b0f61899f0fd8e430174b8a092b8c15cf
[libs/gl.git] / tests / glsl / identifier_conflict.glsl
1 #pragma MSP stage(vertex)
2 layout(location=0) in vec4 position;
3 out VertexOut
4 {
5         vec2 texcoord;
6 } vs_out;
7 vec3 normal;
8 out VertexOut2
9 {
10         vec2 texcoord;
11         vec3 normal;
12 };
13 vec2 texcoord;
14 void main()
15 {
16         vec2 texcoord;
17         gl_Position = position;
18 }
19 vec2 texcoord()
20 {
21         return vec2(0.0);
22 }
23
24 /* Expected error:
25 <test>:11: Multiple definition of 'normal'
26 <test>:7: Previous definition is here
27 <test>:13: Multiple definition of 'texcoord'
28 <test>:10: Previous definition is here
29 <test>:19: Multiple definition of 'texcoord'
30 <test>:10: Previous definition is here
31 */