ARB_ubo/referenced-by-shader: pass if shader compiler moves UBOs between shaders
[piglit.git] / tests / spec / arb_shader_atomic_counters / compiler / declaration-arg-out.frag
blob0663988ffa3f48df3a1fbce3923a09f25abaf058
1 /* [config]
2  * expect_result: fail
3  * glsl_version: 1.40
4  * require_extensions: GL_ARB_shader_atomic_counters
5  * [end config]
6  *
7  * "Counters cannot be treated as l-values; hence cannot be used as
8  *  out or inout function parameters, nor can they be assigned into."
9  */
10 #version 140
11 #extension GL_ARB_shader_atomic_counters: require
13 layout(binding=0) uniform atomic_uint x;
15 void f(out atomic_uint y)
19 void main()