// [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 specified offset must be a multiple of the base alignment of the
//    type of the block member it qualifies, or a compile-time error results."
//

#version 140
#extension GL_ARB_enhanced_layouts : enable

layout(std140) uniform block {
       layout(offset = 0) float f1;
       layout(offset = 6) float f2; // Wrong: offset must be aligned to multiple of sizeof(float)
};

void main()
{
}
