summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-05-24 11:33:28 -0700
committerCarl Worth <cworth@cworth.org>2010-05-24 11:41:36 -0700
commit00f1ec421edf73516fdcfbbdb651f13eeefe8f08 (patch)
treec6f95e3afd5320ef0c18198b77f43b010e9d5ddb
parentbb9315f8047770585391c56973ef26c30f74d603 (diff)
Add test for '/', '<<', and '>>' in #if expressions.
These operators have been supported already, but were not covered in existing tests yet. So this test passes already.
-rw-r--r--tests/053-if-divide-and-shift.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/053-if-divide-and-shift.c b/tests/053-if-divide-and-shift.c
new file mode 100644
index 0000000..ddc1573
--- /dev/null
+++ b/tests/053-if-divide-and-shift.c
@@ -0,0 +1,16 @@
+#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
+