]> git.tdb.fi Git - libs/gl.git/blobdiff - tests/glsl/identifier_conflict.glsl
Improve reporting of function name conflicts
[libs/gl.git] / tests / glsl / identifier_conflict.glsl
index 3e10089b0f61899f0fd8e430174b8a092b8c15cf..b0cd34a6922985a1b7e6477fedb2cc44e36f7421 100644 (file)
@@ -4,6 +4,7 @@ out VertexOut
 {
        vec2 texcoord;
 } vs_out;
+vec3 normal();
 vec3 normal;
 out VertexOut2
 {
@@ -22,10 +23,12 @@ vec2 texcoord()
 }
 
 /* Expected error:
-<test>:11: Multiple definition of 'normal'
+<test>:8: Multiple definition of 'normal'
 <test>:7: Previous definition is here
-<test>:13: Multiple definition of 'texcoord'
-<test>:10: Previous definition is here
-<test>:19: Multiple definition of 'texcoord'
-<test>:10: Previous definition is here
+<test>:12: Multiple definition of 'normal'
+<test>:7: Previous definition is here
+<test>:14: Multiple definition of 'texcoord'
+<test>:11: Previous definition is here
+<test>:20: Multiple definition of 'texcoord'
+<test>:11: Previous definition is here
 */