[Piglit] [PATCH 3/8] glsl-1.10: Verify that predecrement is not an l-value for assignments

Ian Romanick idr at freedesktop.org
Fri Dec 23 14:48:05 PST 2011


From: Ian Romanick <ian.d.romanick at intel.com>

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=43975
---
 .../predecrement-float-not-an-lvalue.frag          |   26 ++++++++++++++++++++
 .../predecrement-float-not-an-lvalue.vert          |   26 ++++++++++++++++++++
 .../predecrement-int-not-an-lvalue.frag            |   26 ++++++++++++++++++++
 .../predecrement-int-not-an-lvalue.vert            |   26 ++++++++++++++++++++
 .../predecrement-ivec2-not-an-lvalue.frag          |   26 ++++++++++++++++++++
 .../predecrement-ivec2-not-an-lvalue.vert          |   26 ++++++++++++++++++++
 .../predecrement-ivec3-not-an-lvalue.frag          |   26 ++++++++++++++++++++
 .../predecrement-ivec3-not-an-lvalue.vert          |   26 ++++++++++++++++++++
 .../predecrement-ivec4-not-an-lvalue.frag          |   26 ++++++++++++++++++++
 .../predecrement-ivec4-not-an-lvalue.vert          |   26 ++++++++++++++++++++
 .../predecrement-vec2-not-an-lvalue.frag           |   26 ++++++++++++++++++++
 .../predecrement-vec2-not-an-lvalue.vert           |   26 ++++++++++++++++++++
 .../predecrement-vec3-not-an-lvalue.frag           |   26 ++++++++++++++++++++
 .../predecrement-vec3-not-an-lvalue.vert           |   26 ++++++++++++++++++++
 .../predecrement-vec4-not-an-lvalue.frag           |   26 ++++++++++++++++++++
 .../predecrement-vec4-not-an-lvalue.vert           |   26 ++++++++++++++++++++
 16 files changed, 416 insertions(+), 0 deletions(-)
 create mode 100644 tests/spec/glsl-1.10/compiler/expressions/predecrement-float-not-an-lvalue.frag
 create mode 100644 tests/spec/glsl-1.10/compiler/expressions/predecrement-float-not-an-lvalue.vert
 create mode 100644 tests/spec/glsl-1.10/compiler/expressions/predecrement-int-not-an-lvalue.frag
 create mode 100644 tests/spec/glsl-1.10/compiler/expressions/predecrement-int-not-an-lvalue.vert
 create mode 100644 tests/spec/glsl-1.10/compiler/expressions/predecrement-ivec2-not-an-lvalue.frag
 create mode 100644 tests/spec/glsl-1.10/compiler/expressions/predecrement-ivec2-not-an-lvalue.vert
 create mode 100644 tests/spec/glsl-1.10/compiler/expressions/predecrement-ivec3-not-an-lvalue.frag
 create mode 100644 tests/spec/glsl-1.10/compiler/expressions/predecrement-ivec3-not-an-lvalue.vert
 create mode 100644 tests/spec/glsl-1.10/compiler/expressions/predecrement-ivec4-not-an-lvalue.frag
 create mode 100644 tests/spec/glsl-1.10/compiler/expressions/predecrement-ivec4-not-an-lvalue.vert
 create mode 100644 tests/spec/glsl-1.10/compiler/expressions/predecrement-vec2-not-an-lvalue.frag
 create mode 100644 tests/spec/glsl-1.10/compiler/expressions/predecrement-vec2-not-an-lvalue.vert
 create mode 100644 tests/spec/glsl-1.10/compiler/expressions/predecrement-vec3-not-an-lvalue.frag
 create mode 100644 tests/spec/glsl-1.10/compiler/expressions/predecrement-vec3-not-an-lvalue.vert
 create mode 100644 tests/spec/glsl-1.10/compiler/expressions/predecrement-vec4-not-an-lvalue.frag
 create mode 100644 tests/spec/glsl-1.10/compiler/expressions/predecrement-vec4-not-an-lvalue.vert

diff --git a/tests/spec/glsl-1.10/compiler/expressions/predecrement-float-not-an-lvalue.frag b/tests/spec/glsl-1.10/compiler/expressions/predecrement-float-not-an-lvalue.frag
new file mode 100644
index 0000000..12633ba
--- /dev/null
+++ b/tests/spec/glsl-1.10/compiler/expressions/predecrement-float-not-an-lvalue.frag
@@ -0,0 +1,26 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.10
+ * [end config]
+ *
+ * Page 32 (page 38 of the PDF) of the GLSL 1.10 spec says:
+ *
+ *     "Variables that are built-in types, entire structures, structure
+ *     fields, l-values with the field selector ( . ) applied to select
+ *     components or swizzles without repeated fields, and l-values
+ *     dereferenced with the array subscript operator ( [ ] ) are all
+ *     l-values. Other binary or unary expressions, non-dereferenced arrays,
+ *     function names, swizzles with repeated fields, and constants cannot be
+ *     l-values.  The ternary operator (?:) is also not allowed as an
+ *     l-value."
+ */
+uniform float u;
+varying vec4 v;
+
+void main()
+{
+    float t = u;
+
+    --t = float(v.x);
+    gl_FragColor = vec4(t, v.yzw);
+}
diff --git a/tests/spec/glsl-1.10/compiler/expressions/predecrement-float-not-an-lvalue.vert b/tests/spec/glsl-1.10/compiler/expressions/predecrement-float-not-an-lvalue.vert
new file mode 100644
index 0000000..9761b28
--- /dev/null
+++ b/tests/spec/glsl-1.10/compiler/expressions/predecrement-float-not-an-lvalue.vert
@@ -0,0 +1,26 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.10
+ * [end config]
+ *
+ * Page 32 (page 38 of the PDF) of the GLSL 1.10 spec says:
+ *
+ *     "Variables that are built-in types, entire structures, structure
+ *     fields, l-values with the field selector ( . ) applied to select
+ *     components or swizzles without repeated fields, and l-values
+ *     dereferenced with the array subscript operator ( [ ] ) are all
+ *     l-values. Other binary or unary expressions, non-dereferenced arrays,
+ *     function names, swizzles with repeated fields, and constants cannot be
+ *     l-values.  The ternary operator (?:) is also not allowed as an
+ *     l-value."
+ */
+uniform float u;
+attribute vec4 v;
+
+void main()
+{
+    float t = u;
+
+    --t = float(v.x);
+    gl_Position = vec4(t, v.yzw);
+}
diff --git a/tests/spec/glsl-1.10/compiler/expressions/predecrement-int-not-an-lvalue.frag b/tests/spec/glsl-1.10/compiler/expressions/predecrement-int-not-an-lvalue.frag
new file mode 100644
index 0000000..ab74b74
--- /dev/null
+++ b/tests/spec/glsl-1.10/compiler/expressions/predecrement-int-not-an-lvalue.frag
@@ -0,0 +1,26 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.10
+ * [end config]
+ *
+ * Page 32 (page 38 of the PDF) of the GLSL 1.10 spec says:
+ *
+ *     "Variables that are built-in types, entire structures, structure
+ *     fields, l-values with the field selector ( . ) applied to select
+ *     components or swizzles without repeated fields, and l-values
+ *     dereferenced with the array subscript operator ( [ ] ) are all
+ *     l-values. Other binary or unary expressions, non-dereferenced arrays,
+ *     function names, swizzles with repeated fields, and constants cannot be
+ *     l-values.  The ternary operator (?:) is also not allowed as an
+ *     l-value."
+ */
+uniform int u;
+varying vec4 v;
+
+void main()
+{
+    int t = u;
+
+    --t = int(v.x);
+    gl_FragColor = vec4(t, v.yzw);
+}
diff --git a/tests/spec/glsl-1.10/compiler/expressions/predecrement-int-not-an-lvalue.vert b/tests/spec/glsl-1.10/compiler/expressions/predecrement-int-not-an-lvalue.vert
new file mode 100644
index 0000000..e15860e
--- /dev/null
+++ b/tests/spec/glsl-1.10/compiler/expressions/predecrement-int-not-an-lvalue.vert
@@ -0,0 +1,26 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.10
+ * [end config]
+ *
+ * Page 32 (page 38 of the PDF) of the GLSL 1.10 spec says:
+ *
+ *     "Variables that are built-in types, entire structures, structure
+ *     fields, l-values with the field selector ( . ) applied to select
+ *     components or swizzles without repeated fields, and l-values
+ *     dereferenced with the array subscript operator ( [ ] ) are all
+ *     l-values. Other binary or unary expressions, non-dereferenced arrays,
+ *     function names, swizzles with repeated fields, and constants cannot be
+ *     l-values.  The ternary operator (?:) is also not allowed as an
+ *     l-value."
+ */
+uniform int u;
+attribute vec4 v;
+
+void main()
+{
+    int t = u;
+
+    --t = int(v.x);
+    gl_Position = vec4(t, v.yzw);
+}
diff --git a/tests/spec/glsl-1.10/compiler/expressions/predecrement-ivec2-not-an-lvalue.frag b/tests/spec/glsl-1.10/compiler/expressions/predecrement-ivec2-not-an-lvalue.frag
new file mode 100644
index 0000000..c81aac3
--- /dev/null
+++ b/tests/spec/glsl-1.10/compiler/expressions/predecrement-ivec2-not-an-lvalue.frag
@@ -0,0 +1,26 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.10
+ * [end config]
+ *
+ * Page 32 (page 38 of the PDF) of the GLSL 1.10 spec says:
+ *
+ *     "Variables that are built-in types, entire structures, structure
+ *     fields, l-values with the field selector ( . ) applied to select
+ *     components or swizzles without repeated fields, and l-values
+ *     dereferenced with the array subscript operator ( [ ] ) are all
+ *     l-values. Other binary or unary expressions, non-dereferenced arrays,
+ *     function names, swizzles with repeated fields, and constants cannot be
+ *     l-values.  The ternary operator (?:) is also not allowed as an
+ *     l-value."
+ */
+uniform ivec2 u;
+varying vec4 v;
+
+void main()
+{
+    ivec2 t = u;
+
+    --t = ivec2(v.xy);
+    gl_FragColor = vec4(t, v.zw);
+}
diff --git a/tests/spec/glsl-1.10/compiler/expressions/predecrement-ivec2-not-an-lvalue.vert b/tests/spec/glsl-1.10/compiler/expressions/predecrement-ivec2-not-an-lvalue.vert
new file mode 100644
index 0000000..1b776b5
--- /dev/null
+++ b/tests/spec/glsl-1.10/compiler/expressions/predecrement-ivec2-not-an-lvalue.vert
@@ -0,0 +1,26 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.10
+ * [end config]
+ *
+ * Page 32 (page 38 of the PDF) of the GLSL 1.10 spec says:
+ *
+ *     "Variables that are built-in types, entire structures, structure
+ *     fields, l-values with the field selector ( . ) applied to select
+ *     components or swizzles without repeated fields, and l-values
+ *     dereferenced with the array subscript operator ( [ ] ) are all
+ *     l-values. Other binary or unary expressions, non-dereferenced arrays,
+ *     function names, swizzles with repeated fields, and constants cannot be
+ *     l-values.  The ternary operator (?:) is also not allowed as an
+ *     l-value."
+ */
+uniform ivec2 u;
+attribute vec4 v;
+
+void main()
+{
+    ivec2 t = u;
+
+    --t = ivec2(v.xy);
+    gl_Position = vec4(t, v.zw);
+}
diff --git a/tests/spec/glsl-1.10/compiler/expressions/predecrement-ivec3-not-an-lvalue.frag b/tests/spec/glsl-1.10/compiler/expressions/predecrement-ivec3-not-an-lvalue.frag
new file mode 100644
index 0000000..411eeca
--- /dev/null
+++ b/tests/spec/glsl-1.10/compiler/expressions/predecrement-ivec3-not-an-lvalue.frag
@@ -0,0 +1,26 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.10
+ * [end config]
+ *
+ * Page 32 (page 38 of the PDF) of the GLSL 1.10 spec says:
+ *
+ *     "Variables that are built-in types, entire structures, structure
+ *     fields, l-values with the field selector ( . ) applied to select
+ *     components or swizzles without repeated fields, and l-values
+ *     dereferenced with the array subscript operator ( [ ] ) are all
+ *     l-values. Other binary or unary expressions, non-dereferenced arrays,
+ *     function names, swizzles with repeated fields, and constants cannot be
+ *     l-values.  The ternary operator (?:) is also not allowed as an
+ *     l-value."
+ */
+uniform ivec3 u;
+varying vec4 v;
+
+void main()
+{
+    ivec3 t = u;
+
+    --t = ivec3(v.xyz);
+    gl_FragColor = vec4(t, v.w);
+}
diff --git a/tests/spec/glsl-1.10/compiler/expressions/predecrement-ivec3-not-an-lvalue.vert b/tests/spec/glsl-1.10/compiler/expressions/predecrement-ivec3-not-an-lvalue.vert
new file mode 100644
index 0000000..ec34b27
--- /dev/null
+++ b/tests/spec/glsl-1.10/compiler/expressions/predecrement-ivec3-not-an-lvalue.vert
@@ -0,0 +1,26 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.10
+ * [end config]
+ *
+ * Page 32 (page 38 of the PDF) of the GLSL 1.10 spec says:
+ *
+ *     "Variables that are built-in types, entire structures, structure
+ *     fields, l-values with the field selector ( . ) applied to select
+ *     components or swizzles without repeated fields, and l-values
+ *     dereferenced with the array subscript operator ( [ ] ) are all
+ *     l-values. Other binary or unary expressions, non-dereferenced arrays,
+ *     function names, swizzles with repeated fields, and constants cannot be
+ *     l-values.  The ternary operator (?:) is also not allowed as an
+ *     l-value."
+ */
+uniform ivec3 u;
+attribute vec4 v;
+
+void main()
+{
+    ivec3 t = u;
+
+    --t = ivec3(v.xyz);
+    gl_Position = vec4(t, v.w);
+}
diff --git a/tests/spec/glsl-1.10/compiler/expressions/predecrement-ivec4-not-an-lvalue.frag b/tests/spec/glsl-1.10/compiler/expressions/predecrement-ivec4-not-an-lvalue.frag
new file mode 100644
index 0000000..e816f32
--- /dev/null
+++ b/tests/spec/glsl-1.10/compiler/expressions/predecrement-ivec4-not-an-lvalue.frag
@@ -0,0 +1,26 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.10
+ * [end config]
+ *
+ * Page 32 (page 38 of the PDF) of the GLSL 1.10 spec says:
+ *
+ *     "Variables that are built-in types, entire structures, structure
+ *     fields, l-values with the field selector ( . ) applied to select
+ *     components or swizzles without repeated fields, and l-values
+ *     dereferenced with the array subscript operator ( [ ] ) are all
+ *     l-values. Other binary or unary expressions, non-dereferenced arrays,
+ *     function names, swizzles with repeated fields, and constants cannot be
+ *     l-values.  The ternary operator (?:) is also not allowed as an
+ *     l-value."
+ */
+uniform ivec4 u;
+varying vec4 v;
+
+void main()
+{
+    ivec4 t = u;
+
+    --t = ivec4(v);
+    gl_FragColor = vec4(t);
+}
diff --git a/tests/spec/glsl-1.10/compiler/expressions/predecrement-ivec4-not-an-lvalue.vert b/tests/spec/glsl-1.10/compiler/expressions/predecrement-ivec4-not-an-lvalue.vert
new file mode 100644
index 0000000..6517f77
--- /dev/null
+++ b/tests/spec/glsl-1.10/compiler/expressions/predecrement-ivec4-not-an-lvalue.vert
@@ -0,0 +1,26 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.10
+ * [end config]
+ *
+ * Page 32 (page 38 of the PDF) of the GLSL 1.10 spec says:
+ *
+ *     "Variables that are built-in types, entire structures, structure
+ *     fields, l-values with the field selector ( . ) applied to select
+ *     components or swizzles without repeated fields, and l-values
+ *     dereferenced with the array subscript operator ( [ ] ) are all
+ *     l-values. Other binary or unary expressions, non-dereferenced arrays,
+ *     function names, swizzles with repeated fields, and constants cannot be
+ *     l-values.  The ternary operator (?:) is also not allowed as an
+ *     l-value."
+ */
+uniform ivec4 u;
+attribute vec4 v;
+
+void main()
+{
+    ivec4 t = u;
+
+    --t = ivec4(v);
+    gl_Position = vec4(t);
+}
diff --git a/tests/spec/glsl-1.10/compiler/expressions/predecrement-vec2-not-an-lvalue.frag b/tests/spec/glsl-1.10/compiler/expressions/predecrement-vec2-not-an-lvalue.frag
new file mode 100644
index 0000000..356759b
--- /dev/null
+++ b/tests/spec/glsl-1.10/compiler/expressions/predecrement-vec2-not-an-lvalue.frag
@@ -0,0 +1,26 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.10
+ * [end config]
+ *
+ * Page 32 (page 38 of the PDF) of the GLSL 1.10 spec says:
+ *
+ *     "Variables that are built-in types, entire structures, structure
+ *     fields, l-values with the field selector ( . ) applied to select
+ *     components or swizzles without repeated fields, and l-values
+ *     dereferenced with the array subscript operator ( [ ] ) are all
+ *     l-values. Other binary or unary expressions, non-dereferenced arrays,
+ *     function names, swizzles with repeated fields, and constants cannot be
+ *     l-values.  The ternary operator (?:) is also not allowed as an
+ *     l-value."
+ */
+uniform vec2 u;
+varying vec4 v;
+
+void main()
+{
+    vec2 t = u;
+
+    --t = vec2(v.xy);
+    gl_FragColor = vec4(t, v.zw);
+}
diff --git a/tests/spec/glsl-1.10/compiler/expressions/predecrement-vec2-not-an-lvalue.vert b/tests/spec/glsl-1.10/compiler/expressions/predecrement-vec2-not-an-lvalue.vert
new file mode 100644
index 0000000..a1f09fc
--- /dev/null
+++ b/tests/spec/glsl-1.10/compiler/expressions/predecrement-vec2-not-an-lvalue.vert
@@ -0,0 +1,26 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.10
+ * [end config]
+ *
+ * Page 32 (page 38 of the PDF) of the GLSL 1.10 spec says:
+ *
+ *     "Variables that are built-in types, entire structures, structure
+ *     fields, l-values with the field selector ( . ) applied to select
+ *     components or swizzles without repeated fields, and l-values
+ *     dereferenced with the array subscript operator ( [ ] ) are all
+ *     l-values. Other binary or unary expressions, non-dereferenced arrays,
+ *     function names, swizzles with repeated fields, and constants cannot be
+ *     l-values.  The ternary operator (?:) is also not allowed as an
+ *     l-value."
+ */
+uniform vec2 u;
+attribute vec4 v;
+
+void main()
+{
+    vec2 t = u;
+
+    --t = vec2(v.xy);
+    gl_Position = vec4(t, v.zw);
+}
diff --git a/tests/spec/glsl-1.10/compiler/expressions/predecrement-vec3-not-an-lvalue.frag b/tests/spec/glsl-1.10/compiler/expressions/predecrement-vec3-not-an-lvalue.frag
new file mode 100644
index 0000000..54b5dea
--- /dev/null
+++ b/tests/spec/glsl-1.10/compiler/expressions/predecrement-vec3-not-an-lvalue.frag
@@ -0,0 +1,26 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.10
+ * [end config]
+ *
+ * Page 32 (page 38 of the PDF) of the GLSL 1.10 spec says:
+ *
+ *     "Variables that are built-in types, entire structures, structure
+ *     fields, l-values with the field selector ( . ) applied to select
+ *     components or swizzles without repeated fields, and l-values
+ *     dereferenced with the array subscript operator ( [ ] ) are all
+ *     l-values. Other binary or unary expressions, non-dereferenced arrays,
+ *     function names, swizzles with repeated fields, and constants cannot be
+ *     l-values.  The ternary operator (?:) is also not allowed as an
+ *     l-value."
+ */
+uniform vec3 u;
+varying vec4 v;
+
+void main()
+{
+    vec3 t = u;
+
+    --t = vec3(v.xyz);
+    gl_FragColor = vec4(t, v.w);
+}
diff --git a/tests/spec/glsl-1.10/compiler/expressions/predecrement-vec3-not-an-lvalue.vert b/tests/spec/glsl-1.10/compiler/expressions/predecrement-vec3-not-an-lvalue.vert
new file mode 100644
index 0000000..c66141b
--- /dev/null
+++ b/tests/spec/glsl-1.10/compiler/expressions/predecrement-vec3-not-an-lvalue.vert
@@ -0,0 +1,26 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.10
+ * [end config]
+ *
+ * Page 32 (page 38 of the PDF) of the GLSL 1.10 spec says:
+ *
+ *     "Variables that are built-in types, entire structures, structure
+ *     fields, l-values with the field selector ( . ) applied to select
+ *     components or swizzles without repeated fields, and l-values
+ *     dereferenced with the array subscript operator ( [ ] ) are all
+ *     l-values. Other binary or unary expressions, non-dereferenced arrays,
+ *     function names, swizzles with repeated fields, and constants cannot be
+ *     l-values.  The ternary operator (?:) is also not allowed as an
+ *     l-value."
+ */
+uniform vec3 u;
+attribute vec4 v;
+
+void main()
+{
+    vec3 t = u;
+
+    --t = vec3(v.xyz);
+    gl_Position = vec4(t, v.w);
+}
diff --git a/tests/spec/glsl-1.10/compiler/expressions/predecrement-vec4-not-an-lvalue.frag b/tests/spec/glsl-1.10/compiler/expressions/predecrement-vec4-not-an-lvalue.frag
new file mode 100644
index 0000000..6044f8e
--- /dev/null
+++ b/tests/spec/glsl-1.10/compiler/expressions/predecrement-vec4-not-an-lvalue.frag
@@ -0,0 +1,26 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.10
+ * [end config]
+ *
+ * Page 32 (page 38 of the PDF) of the GLSL 1.10 spec says:
+ *
+ *     "Variables that are built-in types, entire structures, structure
+ *     fields, l-values with the field selector ( . ) applied to select
+ *     components or swizzles without repeated fields, and l-values
+ *     dereferenced with the array subscript operator ( [ ] ) are all
+ *     l-values. Other binary or unary expressions, non-dereferenced arrays,
+ *     function names, swizzles with repeated fields, and constants cannot be
+ *     l-values.  The ternary operator (?:) is also not allowed as an
+ *     l-value."
+ */
+uniform vec4 u;
+varying vec4 v;
+
+void main()
+{
+    vec4 t = u;
+
+    --t = vec4(v);
+    gl_FragColor = vec4(t);
+}
diff --git a/tests/spec/glsl-1.10/compiler/expressions/predecrement-vec4-not-an-lvalue.vert b/tests/spec/glsl-1.10/compiler/expressions/predecrement-vec4-not-an-lvalue.vert
new file mode 100644
index 0000000..3273521
--- /dev/null
+++ b/tests/spec/glsl-1.10/compiler/expressions/predecrement-vec4-not-an-lvalue.vert
@@ -0,0 +1,26 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.10
+ * [end config]
+ *
+ * Page 32 (page 38 of the PDF) of the GLSL 1.10 spec says:
+ *
+ *     "Variables that are built-in types, entire structures, structure
+ *     fields, l-values with the field selector ( . ) applied to select
+ *     components or swizzles without repeated fields, and l-values
+ *     dereferenced with the array subscript operator ( [ ] ) are all
+ *     l-values. Other binary or unary expressions, non-dereferenced arrays,
+ *     function names, swizzles with repeated fields, and constants cannot be
+ *     l-values.  The ternary operator (?:) is also not allowed as an
+ *     l-value."
+ */
+uniform vec4 u;
+attribute vec4 v;
+
+void main()
+{
+    vec4 t = u;
+
+    --t = vec4(v);
+    gl_Position = vec4(t);
+}
-- 
1.7.6.4



More information about the Piglit mailing list