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