summaryrefslogtreecommitdiff
path: root/src/glsl/tests/function-04.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/tests/function-04.glsl')
-rw-r--r--src/glsl/tests/function-04.glsl15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/glsl/tests/function-04.glsl b/src/glsl/tests/function-04.glsl
new file mode 100644
index 0000000000..dfc0d2b7a6
--- /dev/null
+++ b/src/glsl/tests/function-04.glsl
@@ -0,0 +1,15 @@
+/* FAIL - type mismatch in assignment */
+
+vec3 foo(float x, float y, float z)
+{
+ vec3 v;
+ v.x = x;
+ v.y = y;
+ v.z = z;
+ return v;
+}
+
+void main()
+{
+ gl_Position = foo(1.0, 1.0, 1.0);
+}