From 6d53f16aa508c445309aa4ebe965baa9e17401a1 Mon Sep 17 00:00:00 2001 From: aqua Date: Sun, 6 Nov 2022 14:48:41 +0200 Subject: lib: migrate tests to gtest --- lib/tst/mem.c | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 lib/tst/mem.c (limited to 'lib/tst/mem.c') diff --git a/lib/tst/mem.c b/lib/tst/mem.c deleted file mode 100644 index bccb3a3..0000000 --- a/lib/tst/mem.c +++ /dev/null @@ -1,17 +0,0 @@ -#include - -static const unsigned char data[] = {0xde, 0xca, 0xfa, 0xde}; -static unsigned char buffer[4]; - -void *memset(void *s, int c, long unsigned n); -void *memcpy(void *restrict dest, const void *restrict src, long unsigned n); - -int -main(void) -{ - memset(buffer, 0xae, sizeof(data)); - for (unsigned i = 0; i < sizeof(data); ++i) assert(buffer[i] == 0xae); - - memcpy(buffer, data, sizeof(data)); - for (unsigned i = 0; i < sizeof(data); ++i) assert(buffer[i] == data[i]); -} -- cgit v1.2.1