From 6589bc763076ecfd5189c5fdb72c3a913a0dd97b Mon Sep 17 00:00:00 2001 From: fadhil riyanto Date: Sun, 6 Oct 2024 07:17:40 +0700 Subject: test aligned memory Signed-off-by: fadhil riyanto --- test/a.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/a.c 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 + +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 -- cgit v1.2.3