From 6014cc88c045efd822c03a02e7cd986cc0fe01e2 Mon Sep 17 00:00:00 2001 From: Kenneth Russell Date: Tue, 17 May 2022 16:47:58 -0700 Subject: [PATCH] Add test of comma operator in constant-expression context. In GLSL 3.00 section 12.43 "Sequence operator and constant expressions" this is disallowed. Associated with http://crbug.com/1324747 . --- sdk/tests/conformance2/glsl3/00_test_list.txt | 1 + ...omma-operator-not-constant-expression.html | 63 +++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 sdk/tests/conformance2/glsl3/comma-operator-not-constant-expression.html diff --git a/sdk/tests/conformance2/glsl3/00_test_list.txt b/sdk/tests/conformance2/glsl3/00_test_list.txt index 5a47d470f9..daed1b24ee 100644 --- a/sdk/tests/conformance2/glsl3/00_test_list.txt +++ b/sdk/tests/conformance2/glsl3/00_test_list.txt @@ -9,6 +9,7 @@ array-in-complex-expression.html --min-version 2.0.1 array-length-side-effects.html attrib-location-length-limits.html bool-type-cast-bug-uint-ivec-uvec.html +--min-version 2.0.1 comma-operator-not-constant-expression.html compare-structs-containing-arrays.html compound-assignment-type-combination.html const-array-init.html diff --git a/sdk/tests/conformance2/glsl3/comma-operator-not-constant-expression.html b/sdk/tests/conformance2/glsl3/comma-operator-not-constant-expression.html new file mode 100644 index 0000000000..4a76ac5963 --- /dev/null +++ b/sdk/tests/conformance2/glsl3/comma-operator-not-constant-expression.html @@ -0,0 +1,63 @@ + + + + + + +Comma operator should be disallowed in constant-expression context + + + + + + + +
+
+ + + + +