advent-of-dreamcast/test/test_memory.c
2024-12-16 01:39:42 -06:00

24 lines
363 B
C

#include <stdio.h>
#include <stdint.h>
#include "runner.h"
#include "memory.h"
static bool memory_test_0(const char ** scenario)
{
*scenario = "memory_copy_u32 ordering";
uint32_t l[] = {1, 2, 3, 4};
memory_copy_u32(&l[1], 3, &l[0]);
return l[0] == 2 && l[1] == 3 && l[2] == 4;
}
test_t memory_tests[] = {
memory_test_0,
};
RUNNER(memory_tests)