From 58fd33dc479f0fcd64bbb751f3d104109945e375 Mon Sep 17 00:00:00 2001 From: Tom Gall Date: Mon, 7 Jan 2013 14:44:50 -0600 Subject: gles2: glslparser tests ported to glsl es 1.00 --- .../storage-qualifiers/static-write-attribute-02.vert | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/spec/glsl-es-1.00/compiler/storage-qualifiers/static-write-attribute-02.vert (limited to 'tests/spec/glsl-es-1.00/compiler/storage-qualifiers/static-write-attribute-02.vert') diff --git a/tests/spec/glsl-es-1.00/compiler/storage-qualifiers/static-write-attribute-02.vert b/tests/spec/glsl-es-1.00/compiler/storage-qualifiers/static-write-attribute-02.vert new file mode 100644 index 00000000..1182d7ce --- /dev/null +++ b/tests/spec/glsl-es-1.00/compiler/storage-qualifiers/static-write-attribute-02.vert @@ -0,0 +1,19 @@ +// [config] +// expect_result: fail +// glsl_version: 1.20 +// glsles_version: 1.00 +// [end config] +// +// From section 4.3.4 of the GLSL 1.20 spec: +// Attribute variables are read-only as far as the vertex shader is +// concerned. + +attribute float x; + +void f(out float y) { + y = 0.0; +} + +void g() { + f(x); +} -- cgit v1.2.1