Added
authormichaelh <michaelh@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 2 Mar 2002 05:22:11 +0000 (05:22 +0000)
committermichaelh <michaelh@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Sat, 2 Mar 2002 05:22:11 +0000 (05:22 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1968 4a8a32a2-be11-0410-ad9d-d568d2c75423

support/regression/tests/bug-524685.c [new file with mode: 0644]

diff --git a/support/regression/tests/bug-524685.c b/support/regression/tests/bug-524685.c
new file mode 100644 (file)
index 0000000..bfff635
--- /dev/null
@@ -0,0 +1,12 @@
+/* Division by powers of two.
+ */
+#include <testfwk.h>
+
+void
+testDivPow2(void)
+{
+  volatile int left;
+
+  left = -18;
+  ASSERT(left/4 == (-18/4));
+}