Skip to content

Commit f92fb30

Browse files
committed
FreeBSD: cfuncs_parse powl
Like on 64-bit Android and arm64 Linux, arm64 FreeBSD uses 128 bit long doubles, which is not supported by Swift resulting in powl to fail to import and failing the test. #51573
1 parent c88d8cf commit f92fb30

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/ClangImporter/cfuncs_parse.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ func test_pow() {
7070
// https://github.com/apple/swift/issues/51573
7171
// long doubles in AAPCS64 and 64-bit Android are 128 bits, which is not
7272
// supported by Swift, so don't test this.
73-
#if !((os(Android) && _pointerBitWidth(_64)) || (os(Linux) && arch(arm64)))
73+
#if !((os(Android) && _pointerBitWidth(_64)) ||
74+
(os(Linux) && arch(arm64)) ||
75+
(os(FreeBSD) && arch(arm64)))
7476
func test_powl() {
7577
powl(1.5, 2.5)
7678
}

0 commit comments

Comments
 (0)