fix test/salloc_align.c
This commit is contained in:
+3
-3
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user