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