diff options
author | fadhil riyanto <me@fadev.org> | 2024-10-06 07:17:40 +0700 |
---|---|---|
committer | fadhil riyanto <me@fadev.org> | 2024-10-06 07:17:40 +0700 |
commit | 6589bc763076ecfd5189c5fdb72c3a913a0dd97b (patch) | |
tree | 0b4955a3e1f423feca9ab01fd98f33b757a9dd0a /test/a.c | |
parent | 684ee5551aa2795200c22aa8048565c6e69f7af0 (diff) |
test aligned memory
Signed-off-by: fadhil riyanto <me@fadev.org>
Diffstat (limited to 'test/a.c')
-rw-r--r-- | test/a.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/a.c b/test/a.c new file mode 100644 index 0000000..745dcde --- /dev/null +++ b/test/a.c @@ -0,0 +1,11 @@ +#include <stdio.h> + +struct aaa { + int a; + void* b; +} __attribute__((__aligned__(8))); + +int main() +{ + printf("%lu\n", sizeof(struct aaa) - sizeof(int)); +}
\ No newline at end of file |