projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb9315f
)
Add test for '/', '<<', and '>>' in #if expressions.
author
Carl Worth
<cworth@cworth.org>
Mon, 24 May 2010 18:33:28 +0000
(11:33 -0700)
committer
Carl Worth
<cworth@cworth.org>
Mon, 24 May 2010 18:41:36 +0000
(11:41 -0700)
These operators have been supported already, but were not covered in
existing tests yet. So this test passes already.
tests/053-if-divide-and-shift.c
[new file with mode: 0644]
patch
|
blob
diff --git a/tests/053-if-divide-and-shift.c
b/tests/053-if-divide-and-shift.c
new file mode 100644
(file)
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
+