summaryrefslogtreecommitdiff
path: root/tests/spec/glsl-1.50/compiler/interface-block-input-read-only.frag
diff options
context:
space:
mode:
Diffstat (limited to 'tests/spec/glsl-1.50/compiler/interface-block-input-read-only.frag')
-rw-r--r--tests/spec/glsl-1.50/compiler/interface-block-input-read-only.frag20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/spec/glsl-1.50/compiler/interface-block-input-read-only.frag b/tests/spec/glsl-1.50/compiler/interface-block-input-read-only.frag
new file mode 100644
index 000000000..304aacfe0
--- /dev/null
+++ b/tests/spec/glsl-1.50/compiler/interface-block-input-read-only.frag
@@ -0,0 +1,20 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.50
+// check_link: false
+// [end config]
+//
+// Check that an error is generated when trying
+// to change the value of a shader input.
+
+#version 150
+
+in Block {
+ vec4 invar;
+};
+
+void main()
+{
+ invar = vec4(1.0);
+ gl_FragColor = invar;
+}