fix test/salloc_align.c

This commit is contained in:
Nils O. Selåsdal
2025-07-05 22:50:18 +02:00
parent 97bf06b2e8
commit 393106ea4e
+3 -3
View File
@@ -5,8 +5,8 @@
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
#include <assert.h> #include <assert.h>
#include "ucore/ucore_utils.h" #include "ucore/utils.h"
#include "../src/ucore_salloc.c" #include "../src/salloc.c"
struct Foo { struct Foo {
short s1; short s1;
char b; char b;
@@ -41,7 +41,7 @@ int main(int argc, char *argv[])
assert((p/__alignof__(void*)) * __alignof__(void*) == p); assert((p/__alignof__(void*)) * __alignof__(void*) == p);
assert((p/__alignof__(double)) * __alignof__(double) == p); assert((p/__alignof__(double)) * __alignof__(double) == p);
} }
uc_free_salloc(s); uc_free_salloc(s);
s = uc_new_salloc(141); s = uc_new_salloc(141);