aboutsummaryrefslogtreecommitdiff
path: root/tests/spec/glsl-es-1.00/compiler/storage-qualifiers/static-write-varying-01.frag
diff options
context:
space:
mode:
authorTom Gall <tom.gall@linaro.org>2013-01-07 14:44:50 -0600
committerTom Gall <tom.gall@linaro.org>2013-04-22 11:17:19 -0500
commit58fd33dc479f0fcd64bbb751f3d104109945e375 (patch)
tree057d013d929e429c57efa220986ddccfcb2f20d4 /tests/spec/glsl-es-1.00/compiler/storage-qualifiers/static-write-varying-01.frag
parent93c7d0f7b67677e9b29b2ecdc573912b0ba01af6 (diff)
downloadpiglit-58fd33dc479f0fcd64bbb751f3d104109945e375.tar.gz
gles2: glslparser tests ported to glsl es 1.00
Diffstat (limited to 'tests/spec/glsl-es-1.00/compiler/storage-qualifiers/static-write-varying-01.frag')
-rw-r--r--tests/spec/glsl-es-1.00/compiler/storage-qualifiers/static-write-varying-01.frag14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/spec/glsl-es-1.00/compiler/storage-qualifiers/static-write-varying-01.frag b/tests/spec/glsl-es-1.00/compiler/storage-qualifiers/static-write-varying-01.frag
new file mode 100644
index 00000000..c2f320ce
--- /dev/null
+++ b/tests/spec/glsl-es-1.00/compiler/storage-qualifiers/static-write-varying-01.frag
@@ -0,0 +1,14 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.20
+// glsles_version: 1.00
+// [end config]
+//
+// From section 4.3.6 of the GLSL 1.20 spec:
+// A fragment shader can not write to a varying variable.
+
+varying float x;
+
+void g() {
+ x = 0.0;
+}