// [config]
// expect_result: fail
// glsl_version: 1.40
// require_extensions: GL_ARB_enhanced_layouts
// check_link: false
// [end config]
//
// ARB_enhanced_layouts spec says:
//    "The *offset* qualifier can only be used on block members of blocks
//    declared with *std140* or *std430* layouts.
//
// Tests for compiler error, when the block is of shared layout.
//

#version 140
#extension GL_ARB_enhanced_layouts : enable

layout(shared) uniform block {
       layout(offset = 0) vec4 var1;
       layout(offset = 32) vec4 var2;
};

void main()
{
}
