diff options
Diffstat (limited to 'tests/spec')
-rw-r--r-- | tests/spec/glsl-1.50/compiler/interface-blocks-name-reused-globally.vert | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/spec/glsl-1.50/compiler/interface-blocks-name-reused-globally.vert b/tests/spec/glsl-1.50/compiler/interface-blocks-name-reused-globally.vert new file mode 100644 index 000000000..8f20695aa --- /dev/null +++ b/tests/spec/glsl-1.50/compiler/interface-blocks-name-reused-globally.vert @@ -0,0 +1,26 @@ +// [config] +// expect_result: fail +// glsl_version: 1.50 +// check_link: true +// [end config] +// +// GLSLangSpec.1.50.11, 4.3.7 Interface Blocks: +// "Block names have no other use within a shader beyond interface matching; +// it is an error to use a block name at global scope for anything other than +// as a block name." +// +// Tests that an interface block name may not be reused globally as anything +// other than as a block name. + +#version 150 + +vec4 block; + +out block { + vec4 a; +} inst; + +void main() +{ +} + |