Add test for invalid assignment of function return value
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user