summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2011-01-04 13:18:19 -0800
committerVinson Lee <[email protected]>2011-01-04 13:18:19 -0800
commit6530944b502a0f35b305ee35c1c6f1e32a887721 (patch)
treedd0dbfa853c0bcf126cd4c51cf39feb62256b3c4 /src/glsl
parent50630f9016bdf0ea33ae1007c5a523cdcde3e3c9 (diff)
glcpp: Add division by zero test cases.
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/glcpp/tests/093-divide-by-zero.c2
-rw-r--r--src/glsl/glcpp/tests/094-divide-by-zero-short-circuit.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/glcpp/tests/093-divide-by-zero.c b/src/glsl/glcpp/tests/093-divide-by-zero.c
new file mode 100644
index 00000000000..bf65d4f5271
--- /dev/null
+++ b/src/glsl/glcpp/tests/093-divide-by-zero.c
@@ -0,0 +1,2 @@
+#if (1 / 0)
+#endif
diff --git a/src/glsl/glcpp/tests/094-divide-by-zero-short-circuit.c b/src/glsl/glcpp/tests/094-divide-by-zero-short-circuit.c
new file mode 100644
index 00000000000..a9c6f36def8
--- /dev/null
+++ b/src/glsl/glcpp/tests/094-divide-by-zero-short-circuit.c
@@ -0,0 +1,2 @@
+#if 1 || (1 / 0)
+#endif