summaryrefslogtreecommitdiffstats
path: root/src/glsl/tests/function-02.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/tests/function-02.glsl')
-rw-r--r--src/glsl/tests/function-02.glsl16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/glsl/tests/function-02.glsl b/src/glsl/tests/function-02.glsl
new file mode 100644
index 00000000000..941fcc1ef7b
--- /dev/null
+++ b/src/glsl/tests/function-02.glsl
@@ -0,0 +1,16 @@
+/* FAIL - no version of 'foo' matches the call to 'foo' */
+
+vec4 foo(float x, float y, float z, float w)
+{
+ vec4 v;
+ v.x = x;
+ v.y = y;
+ v.z = z;
+ v.w = w;
+ return v;
+}
+
+void main()
+{
+ gl_Position = foo(1.0, 1.0, 1.0);
+}