aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2013-02-22 10:03:06 -0800
committerJordan Justen <jordan.l.justen@intel.com>2013-03-01 14:19:31 -0800
commit708a130a6cf153853bcef5f7c45dab4fdca6aa36 (patch)
tree2160052d704d7a86451479cb0d08062c07e70b65
parent88b4bb8d6c2ddcf89235d211e8dc2acd2d778896 (diff)
glsl-1.50: varying 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-varying-used.vert22
1 files changed, 22 insertions, 0 deletions
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 00000000..c0a957b0
--- /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()
+{
+}
+