Fixed #1292721
[fw/sdcc] / support / regression / tests / bug-1805702.c
index 1b92e04a7793caadc4edb65cfa29e6dd5bfb9907..54c532b23df188c6e23046dd9aaeb39231c36af2 100644 (file)
@@ -1,8 +1,6 @@
 /* bug-1805702.c
  */
 
-/* disabled */
-#if 0
 #include <testfwk.h>
 
 int foo;
@@ -15,4 +13,12 @@ test(void)
 
   ASSERT(foo == 10);
 }
-#endif
+
+/* compile time check for compiler defined functions (cdef) */
+
+float __fsmul (float, float);
+
+float __fsmul (float a1, float a2) {
+  /* just for tesing... */
+  return (a1 + a2);
+}