diff options
author | Andrei Horodniceanu <a.horodniceanu@proton.me> | 2024-04-26 21:31:35 +0300 |
---|---|---|
committer | Andrei Horodniceanu <a.horodniceanu@proton.me> | 2024-04-26 21:34:15 +0300 |
commit | 0618e9ecab3234a0fb7f0bb2c358c37630bb1427 (patch) | |
tree | 5f36caa7aee3ec14bbc947f7201b93c7e200a565 /eclass/tests | |
parent | dev-util/dub: add 1.37.0 (diff) | |
download | dlang-0618e9ecab3234a0fb7f0bb2c358c37630bb1427.tar.gz dlang-0618e9ecab3234a0fb7f0bb2c358c37630bb1427.tar.bz2 dlang-0618e9ecab3234a0fb7f0bb2c358c37630bb1427.zip |
dlang-utils.eclass: add dlang_get_abi_bits
Signed-off-by: Andrei Horodniceanu <a.horodniceanu@proton.me>
Diffstat (limited to 'eclass/tests')
-rwxr-xr-x | eclass/tests/dlang-utils.sh | 7 |
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 |