projects
/
fw
/
sdcc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* src/z80/ralloc.c (packRegsForHLUse3): Created and optimised.
[fw/sdcc]
/
support
/
regression
/
tests
/
bug-435214.c
diff --git a/support/regression/tests/bug-435214.c
b/support/regression/tests/bug-435214.c
new file mode 100644
(file)
index 0000000..
a8887ca
--- /dev/null
+++ b/
support/regression/tests/bug-435214.c
@@ -0,0
+1,17
@@
+/* bug-435214.c
+ */
+#include <testfwk.h>
+
+static
+unsigned long divide(long a)
+{
+ return a/512ul;
+}
+
+static void
+testDivide()
+{
+ ASSERT(divide(1300) == 2);
+ ASSERT(divide(0x12345678) == 0x91A2B);
+}
+