summaryrefslogtreecommitdiff
path: root/support/regression/tests/bug1551947.c
diff options
context:
space:
mode:
Diffstat (limited to 'support/regression/tests/bug1551947.c')
-rw-r--r--support/regression/tests/bug1551947.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/support/regression/tests/bug1551947.c b/support/regression/tests/bug1551947.c
new file mode 100644
index 0000000..cf80edc
--- /dev/null
+++ b/support/regression/tests/bug1551947.c
@@ -0,0 +1,18 @@
+/*
+ bug1551947.c
+*/
+
+#include <testfwk.h>
+
+__xdata float z;
+__xdata float x = 1.0;
+
+void
+testBug (void)
+{
+#if !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) // Lack of memory
+ z = x * x;
+ ASSERT (z == 1.0);
+#endif
+}
+