cl: Don't use device_infos if num_device_infos == 0
[piglit.git] / tests / glslparsertest / glsl2 / redeclaration-17.vert
blobce54113be2f391081cedc480b254e150540835fa
1 // [config]
2 // expect_result: fail
3 // glsl_version: 1.10
4 //
5 // [end config]
7 /* FAIL - id(5) should be the struct constructor, not the function */
9 int id(int x) {
10    return x;
13 void main() {
14    struct id {
15       int n;
16    };
17    int i = id(5);