[Piglit] [PATCH 4/6] glsl-1.50: attribute keyword is not allowed within an interface block

Jordan Justen jordan.l.justen at intel.com
Wed Feb 27 11:24:30 PST 2013


Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
---
 .../compiler/interface-blocks-attribute-used.vert  |   22 ++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 tests/spec/glsl-1.50/compiler/interface-blocks-attribute-used.vert

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 0000000..dd25dac
--- /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()
+{
+}
+
-- 
1.7.10.4



More information about the Piglit mailing list