aboutsummaryrefslogtreecommitdiffstats
path: root/test/mem/memmove_sing.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/mem/memmove_sing.c')
-rw-r--r--test/mem/memmove_sing.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/mem/memmove_sing.c b/test/mem/memmove_sing.c
new file mode 100644
index 0000000..3845f35
--- /dev/null
+++ b/test/mem/memmove_sing.c
@@ -0,0 +1,8 @@
+#include <mem.h>
+
+static char src[] = "hello";
+
+int main(void) {
+ calt_memmove(src, src, sizeof(src));
+ return calt_memcmp(src, "hello", sizeof(src)) == 0 ? 0 : 1;
+}