From: Ian Romanick Date: Tue, 23 Mar 2010 20:23:53 +0000 (-0700) Subject: Add test for invalid assignment of function return value X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1e5cd2b05b2354006f8e33d20c3535ac2219b573;p=mesa.git Add test for invalid assignment of function return value --- 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); +}