summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfadhil riyanto <me@fadev.org>2024-10-06 07:17:40 +0700
committerfadhil riyanto <me@fadev.org>2024-10-06 07:17:40 +0700
commit6589bc763076ecfd5189c5fdb72c3a913a0dd97b (patch)
tree0b4955a3e1f423feca9ab01fd98f33b757a9dd0a
parent684ee5551aa2795200c22aa8048565c6e69f7af0 (diff)
test aligned memory
Signed-off-by: fadhil riyanto <me@fadev.org>
-rw-r--r--test/a.c11
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