From 1e5cd2b05b2354006f8e33d20c3535ac2219b573 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Tue, 23 Mar 2010 13:23:53 -0700 Subject: [PATCH] Add test for invalid assignment of function return value --- tests/function-04.glsl | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/function-04.glsl diff --git a/tests/function-04.glsl b/tests/function-04.glsl new file mode 100644 index 00000000000..dfc0d2b7a6c --- /dev/null +++ b/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); +} -- 2.30.2