aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'eclass/tests/dlang-utils.sh')
-rwxr-xr-xeclass/tests/dlang-utils.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/eclass/tests/dlang-utils.sh b/eclass/tests/dlang-utils.sh
index 70915c3..0f4b6da 100755
--- a/eclass/tests/dlang-utils.sh
+++ b/eclass/tests/dlang-utils.sh
@@ -277,3 +277,10 @@ dlang-filter-dflags "gdc*" "-march=native"
[[ "${DCFLAGS}" == "-O2 -pipe" ]] &&
[[ "${DMDW_DCFLAGS}" == "-q,-O2 -q,-pipe" ]]
tend $?
+
+tbegin "dlang_get_abi_bits"
+assert_eq $(dlang_get_abi_bits x86) 32
+assert_eq $(dlang_get_abi_bits amd64) 64
+assert_eq $(dlang_get_abi_bits aarch64) ""
+assert_eq $(ABI=x86 dlang_get_abi_bits) 32
+tend