cl: Don't use device_infos if num_device_infos == 0
[piglit.git] / tests / glslparsertest / glsl2 / redeclaration-11.vert
blob76249e1193127aa9b1d159ddf99f6617a63a1ccc
1 // [config]
2 // expect_result: fail
3 // glsl_version: 1.20
4 //
5 // [end config]
7 /* FAIL - in 1.20, variables hide functions, so the call is illegal. */
8 #version 120
10 void foo(vec4 vs) {
11    gl_Position = vs;
14 void main() {
15    float foo = 1.0;
16    foo(vec4(0.0));