From bb663502b1db5a0068504f50357294bd97c97731 Mon Sep 17 00:00:00 2001 From: michaelh Date: Sat, 2 Mar 2002 05:22:11 +0000 Subject: [PATCH] Added git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1968 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- support/regression/tests/bug-524685.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 support/regression/tests/bug-524685.c diff --git a/support/regression/tests/bug-524685.c b/support/regression/tests/bug-524685.c new file mode 100644 index 00000000..bfff635a --- /dev/null +++ b/support/regression/tests/bug-524685.c @@ -0,0 +1,12 @@ +/* Division by powers of two. + */ +#include + +void +testDivPow2(void) +{ + volatile int left; + + left = -18; + ASSERT(left/4 == (-18/4)); +} -- 2.30.2