File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 5
5
// or actually be printed using a C / Objective-C compatible type.
6
6
7
7
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) \
8
- // RUN: %s -emit-module -verify -o %t \
8
+ // RUN: %s -emit-module -verify -o %t -emit-module-doc \
9
9
// RUN: -emit-clang-header-path %t/compat.h
10
10
// RUN: %FileCheck %s --input-file %t/compat.h
11
11
@@ -17,6 +17,15 @@ func referencesScalar() -> Unicode.Scalar { fatalError() }
17
17
func x_referencesRelated( a: CChar32 , b: CWideChar ) { }
18
18
// CHECK: SWIFT_EXTERN void referencesRelated(char32_t a, wchar_t b)
19
19
20
- @_cdecl ( " referencesFloat16 " )
21
- func y_referencesFloat16( a: Float16 , b: CFloat16 ) { }
20
+ #if !((os(macOS) || targetEnvironment(macCatalyst)) && arch(x86_64))
21
+ // Actual test of Float16, on supported platforms.
22
+ @_cdecl ( " referencesFloat16 " )
23
+ func y_referencesFloat16( a: Float16 , b: CFloat16 ) { }
24
+ #else
25
+ // Just print the expected string on macOS&x86_64 where there's no Float16.
26
+ // This disables this one check on unsupported platforms.
27
+ /// SWIFT_EXTERN void referencesFloat16(_Float16 a, _Float16 b)
28
+ @_cdecl ( " printTheDoc " )
29
+ public func y_printTheDoc( ) { }
30
+ #endif
22
31
// CHECK: SWIFT_EXTERN void referencesFloat16(_Float16 a, _Float16 b)
You can’t perform that action at this time.
0 commit comments