Skip to content

Commit 7886d9e

Browse files
committed
[Test] Verify Float16 is BitwiseCopyable.
1 parent 621d4c1 commit 7886d9e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/Sema/bitwise_copyable_2.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,11 @@ func passMemoryLayout<T>(_ m: MemoryLayout<T>) { take(m) } // expected-error{{co
4040
func passCommandLine(_ m: CommandLine) { take(m) } // expected-error{{conformance_availability_unavailable}}
4141

4242
func passUnicode(_ m: Unicode) { take(m) } // expected-error{{conformance_availability_unavailable}}
43+
44+
import Builtin
45+
46+
#if arch(arm)
47+
func passBuiltinFloat16(_ f: Builtin.FPIEEE16) { take(f) }
48+
@available(SwiftStdlib 5.3, *)
49+
func passFloat16(_ f: Float16) { take(f) }
50+
#endif

0 commit comments

Comments
 (0)