---
 tests/spec/glsl-1.50/compiler/input-read-only.frag | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 tests/spec/glsl-1.50/compiler/input-read-only.frag

diff --git a/tests/spec/glsl-1.50/compiler/input-read-only.frag 
b/tests/spec/glsl-1.50/compiler/input-read-only.frag
new file mode 100644
index 0000000..73d51d3
--- /dev/null
+++ b/tests/spec/glsl-1.50/compiler/input-read-only.frag
@@ -0,0 +1,17 @@
+// [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 vec4 invar;
+
+void main()
+{
+  invar = vec4(1.0);
+}
-- 
2.1.0

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to