OSDN Git Service

Add a handful of simple tests for function calls in constructors
[android-x86/external-mesa.git] / tests / function-02.glsl
1 /* FAIL - no version of 'foo' matches the call to 'foo' */
2
3 vec4 foo(float x, float y, float z, float w)
4 {
5   vec4 v;
6   v.x = x;
7   v.y = y;
8   v.z = z;
9   v.w = w;
10   return v;
11 }
12
13 void main()
14 {
15   gl_Position = foo(1.0, 1.0, 1.0);
16 }