File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed
test/TypeRoundTrip/Inputs/testcases Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -70,14 +70,8 @@ if(SWIFT_BUILD_STDLIB OR SWIFT_BUILD_REMOTE_MIRROR)
70
70
"${SWIFT_SOURCE_DIR} /lib/Demangling/OldDemangler.cpp"
71
71
"${SWIFT_SOURCE_DIR} /lib/Demangling/OldRemangler.cpp"
72
72
"${SWIFT_SOURCE_DIR} /lib/Demangling/Punycode.cpp"
73
- "${SWIFT_SOURCE_DIR} /lib/Demangling/Remangler.cpp" )
74
-
75
- # When we're building with assertions, include the demangle node dumper to aid
76
- # in debugging.
77
- if (LLVM_ENABLE_ASSERTIONS )
78
- list (APPEND swiftDemanglingSources
79
- "${SWIFT_SOURCE_DIR} /lib/Demangling/NodeDumper.cpp" )
80
- endif ()
73
+ "${SWIFT_SOURCE_DIR} /lib/Demangling/Remangler.cpp"
74
+ "${SWIFT_SOURCE_DIR} /lib/Demangling/NodeDumper.cpp" )
81
75
82
76
add_swift_target_library (swiftDemangling OBJECT_LIBRARY
83
77
${swiftDemanglingSources}
Original file line number Diff line number Diff line change @@ -22,7 +22,11 @@ public func test() {
22
22
roundTripType ( ( x: Int, Float, y: Int . Type) . self)
23
23
roundTripType ( ( ( @escaping ( ) - > ( ) ) -> ( ) ) . self)
24
24
roundTripType ( Array < @convention ( c) ( ) -> ( ) > . self)
25
+
26
+ // @convention(block) requires Objective-C support
27
+ #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
25
28
roundTripType ( Array < ( @escaping @convention ( block) ( ) -> ( ) , @convention ( block) ( ) -> ( ) ) -> ( ) > . self)
29
+ #endif
26
30
27
31
roundTripType ( Int . Type. self)
28
32
roundTripType ( ( ( inout String) - > ( ) ) . Type. self)
@@ -39,7 +43,11 @@ public func test() {
39
43
roundTripType ( ( x: Int, Float, y: Int . Type) . Type. self)
40
44
roundTripType ( ( ( @escaping ( ) - > ( ) ) -> ( ) ) . Type. self)
41
45
roundTripType ( Array < @convention ( c) ( ) -> ( ) > . Type. self)
46
+
47
+ // @convention(block) requires Objective-C support
48
+ #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
42
49
roundTripType ( Array < ( @escaping @convention ( block) ( ) -> ( ) , @convention ( block) ( ) -> ( ) ) -> ( ) > . Type. self)
50
+ #endif
43
51
44
52
// rdar://81587763: [SR-15025]: Function type syntax doesn't accept variadics
45
53
// or __owned
You can’t perform that action at this time.
0 commit comments