Fixed bugs #2728224, #2728218
[fw/sdcc] / support / regression / tests / memory.c
index 911900b980637179c8fcc3d0d2daa80ab6df3b0c..77014fd3b9bcad01a45bc67f619dec8bae71160f 100644 (file)
@@ -22,6 +22,10 @@ void testmemory(void)
   ASSERT(destination[2] == source[2]);
   ASSERT(destination[3] == 23);
 
+  /* Test memcmp() */
+  memcpy(destination, source, 4);
+  ASSERT(memcmp(destination, source, 4) == 0);
+
   /* Test memmove() */
   memcpy(destination, source, 4);
   memmove(destination, destination + 1, 3);