summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTapani Pälli <tapani.palli@intel.com>2018-09-24 16:32:23 +0300
committerTapani Pälli <tapani.palli@intel.com>2018-10-08 13:41:04 +0300
commit72e1c3dbf26002bfc547f58ec248f9853e75bac3 (patch)
tree483a03f5e31688950558508c628082821fee478c
parentf787ad0b60869f969f02da43f5c064e98baa2db1 (diff)
glsl-1.10: test some arithmetic on non-existing struct member
Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Eric Anholt <eric@anholt.net> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108012
-rw-r--r--tests/spec/glsl-1.10/compiler/struct/arithmetic-on-non-existing-struct-member.vert17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/spec/glsl-1.10/compiler/struct/arithmetic-on-non-existing-struct-member.vert b/tests/spec/glsl-1.10/compiler/struct/arithmetic-on-non-existing-struct-member.vert
new file mode 100644
index 000000000..7e5ea93a9
--- /dev/null
+++ b/tests/spec/glsl-1.10/compiler/struct/arithmetic-on-non-existing-struct-member.vert
@@ -0,0 +1,17 @@
+/* [config]
+ * expect_result: fail
+ * glsl_version: 1.10
+ * [end config]
+ */
+struct Foo
+{
+ float does_exist_member;
+};
+
+void
+main(void)
+{
+ Foo foo;
+ foo.does_not_exist_member /= 3.0;
+ gl_Position = vec4(1.0);
+}