summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKaruro Chari <[email protected]>2026-05-22 11:47:53 +0100
committerKaruro Chari <[email protected]>2026-05-22 11:47:53 +0100
commitaff68423976e2c8a4feb97f19edf6716d271f0f0 (patch)
treee54ebc32e6e35d2d6cccc20a5474c67a4b98489d /tests
parent1abc5af91f5c4eed1fadd7ad758bfd82a4a8be77 (diff)
Introduced alignof support like the one for check_sizeof
Diffstat (limited to 'tests')
-rw-r--r--tests/apis/check_xxx/xmake.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/apis/check_xxx/xmake.lua b/tests/apis/check_xxx/xmake.lua
index 3643100ce..99745b1c7 100644
--- a/tests/apis/check_xxx/xmake.lua
+++ b/tests/apis/check_xxx/xmake.lua
@@ -21,6 +21,8 @@ target("foo")
check_csnippets("INT_SIZE", 'printf("%d", sizeof(int)); return 0;', {output = true, number = true})
check_sizeof("LONG_SIZE", "long")
check_sizeof("STRING_SIZE", "std::string", {includes = "string"})
+ check_alignof("LONG_ALIGN", "long")
+ check_alignof("STRING_ALIGN", "std::string", {includes = "string"})
configvar_check_bigendian("IS_BIG_ENDIAN")
configvar_check_cincludes("HAS_STRING_AND_STDIO_H", {"string.h", "stdio.h"})
configvar_check_ctypes("HAS_WCHAR_AND_FLOAT", {"wchar_t", "float"})