ext_gpu_shader4: add compiler tests for everything
[piglit.git] / tests / spec / arb_uniform_buffer_object / compiler / layout-shared-within-block.frag
blob4a84c10658a1f2d20fb3e9ec693452580965bf49
1 // [config]
2 // expect_result: fail
3 // glsl_version: 1.20
4 // require_extensions: GL_ARB_uniform_buffer_object
5 // [end config]
7 /* From the GL_ARB_uniform_buffer_object_spec:
8  *
9  *     "Layout qualifiers on member declarations cannot use the
10  *      shared, packed, or std140 qualifiers. These can only be used
11  *      at global scope or on a block declaration."
12  */
14 #version 120
15 #extension GL_ARB_uniform_buffer_object: require
17 uniform ubo {
18         layout(shared) vec4 a;
21 vec4 foo(void) {
22         return a;