Signed-off-by: Tapani Pälli <tapani.pa...@intel.com> https://bugs.freedesktop.org/show_bug.cgi?id=108012 --- ...rithmetic-on-non-existing-struct-member.vert | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/spec/glsl-1.10/compiler/struct/arithmetic-on-non-existing-struct-member.vert
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); +} -- 2.17.1 _______________________________________________ Piglit mailing list Piglit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/piglit