summaryrefslogtreecommitdiffstats
path: root/src/glsl/glcpp/tests/053-if-divide-and-shift.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/glcpp/tests/053-if-divide-and-shift.c')
-rw-r--r--src/glsl/glcpp/tests/053-if-divide-and-shift.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/glsl/glcpp/tests/053-if-divide-and-shift.c b/src/glsl/glcpp/tests/053-if-divide-and-shift.c
new file mode 100644
index 00000000000..d24c54a88d1
--- /dev/null
+++ b/src/glsl/glcpp/tests/053-if-divide-and-shift.c
@@ -0,0 +1,15 @@
+#if (15 / 2) != 7
+failure_1
+#else
+success_1
+#endif
+#if (1 << 12) == 4096
+success_2
+#else
+failure_2
+#endif
+#if (31762 >> 8) != 124
+failure_3
+#else
+success_3
+#endif