diff options
author | Jordan Justen <jordan.l.justen@intel.com> | 2013-02-26 16:26:12 -0800 |
---|---|---|
committer | Jordan Justen <jordan.l.justen@intel.com> | 2013-03-01 14:19:31 -0800 |
commit | 88b4bb8d6c2ddcf89235d211e8dc2acd2d778896 (patch) | |
tree | b13dafd7da0e80001718afc870575926c0ec1995 | |
parent | bd0810570cbed9ccfb501db84826097aebdde767 (diff) |
glsl-1.50: attribute keyword is not allowed within an interface block
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
-rw-r--r-- | tests/spec/glsl-1.50/compiler/interface-blocks-attribute-used.vert | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/spec/glsl-1.50/compiler/interface-blocks-attribute-used.vert b/tests/spec/glsl-1.50/compiler/interface-blocks-attribute-used.vert new file mode 100644 index 00000000..dd25dacd --- /dev/null +++ b/tests/spec/glsl-1.50/compiler/interface-blocks-attribute-used.vert @@ -0,0 +1,22 @@ +// [config] +// expect_result: fail +// glsl_version: 1.50 +// check_link: true +// [end config] +// +// Tests that the attribute qualifier is rejected in an interface block. +// +// GLSLangSpec.1.50.11, 4.3.7 Interface Blocks: +// "Declarations using the deprecated attribute and varying qualifiers +// are not allowed." + +#version 150 + +out block { + attribute vec4 a; // illegal: can't use deprecated attribute keyword +} inst; + +void main() +{ +} + |