Skip to content

Commit d2495f8

Browse files
[stdlib] Reinstate the FixedPointConversion tests (#36205)
* [stdlib] Reinstate the FixedPointConversion tests * [stdlib] Update the FixedPointConversion tests * [stdlib] Generate the FixedPointConversion tests * [stdlib] FixedPointConversion_Release32: long_test
1 parent 252a8ec commit d2495f8

File tree

45 files changed

+64608
-246
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+64608
-246
lines changed

stdlib/private/StdlibUnittest/OpaqueIdentityFunctions.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// This source file is part of the Swift.org open source project
44
//
5-
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
5+
// Copyright (c) 2014 - 2021 Apple Inc. and the Swift project authors
66
// Licensed under Apache License v2.0 with Runtime Library Exception
77
//
88
// See https://swift.org/LICENSE.txt for license information
@@ -65,6 +65,12 @@ public func getUInt64(_ x: UInt64) -> UInt64 { return _opaqueIdentity(x) }
6565
@inline(never)
6666
public func getUInt(_ x: UInt) -> UInt { return _opaqueIdentity(x) }
6767

68+
#if !((os(macOS) || targetEnvironment(macCatalyst)) && arch(x86_64))
69+
@available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *)
70+
@inline(never)
71+
public func getFloat16(_ x: Float16) -> Float16 { return _opaqueIdentity(x) }
72+
#endif
73+
6874
@inline(never)
6975
public func getFloat32(_ x: Float32) -> Float32 { return _opaqueIdentity(x) }
7076

test/stdlib/Inputs/FixedPointConversion.swift.gyb

Lines changed: 0 additions & 227 deletions
This file was deleted.

0 commit comments

Comments
 (0)