aboutsummaryrefslogtreecommitdiff
path: root/tests/spec/glsl-es-1.00/compiler/arithmetic-operators/modulus-00.frag
diff options
context:
space:
mode:
Diffstat (limited to 'tests/spec/glsl-es-1.00/compiler/arithmetic-operators/modulus-00.frag')
-rw-r--r--tests/spec/glsl-es-1.00/compiler/arithmetic-operators/modulus-00.frag16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/spec/glsl-es-1.00/compiler/arithmetic-operators/modulus-00.frag b/tests/spec/glsl-es-1.00/compiler/arithmetic-operators/modulus-00.frag
new file mode 100644
index 00000000..8f1efea9
--- /dev/null
+++ b/tests/spec/glsl-es-1.00/compiler/arithmetic-operators/modulus-00.frag
@@ -0,0 +1,16 @@
+// [config]
+// expect_result: fail
+// glsl_version: 1.10
+// glsles_version: 1.00
+// [end config]
+//
+// The modulus operator '%' is reserved.
+//
+// From section 5.9 of the GLSL ES 1.00.17 spec:
+// The operator modulus (%) is reserved for future use.
+
+int
+f() {
+ int tea_time = 15 % 24;
+ return tea_time;
+}