Signed-off-by: Jordan Justen <[email protected]>
---
.../compiler/interface-blocks-varying-used.vert | 22 ++++++++++++++++++++
1 file changed, 22 insertions(+)
create mode 100644
tests/spec/glsl-1.50/compiler/interface-blocks-varying-used.vert
diff --git a/tests/spec/glsl-1.50/compiler/interface-blocks-varying-used.vert
b/tests/spec/glsl-1.50/compiler/interface-blocks-varying-used.vert
new file mode 100644
index 0000000..c0a957b
--- /dev/null
+++ b/tests/spec/glsl-1.50/compiler/interface-blocks-varying-used.vert
@@ -0,0 +1,22 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.50
+// check_link: true
+// [end config]
+//
+// Tests that a varying 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 {
+ varying vec4 a; // illegal: can't use deprecated varying keyword
+} inst;
+
+void main()
+{
+}
+
--
1.7.10.4
_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit