Skip to content

Commit 922af42

Browse files
committed
ModuleInterface: Adopt swiftinterface verification lit substitutions in synthesized.swift. Update the test to expect output for a resilient framework by removing @inlinable attributes from a few decls.
1 parent fa94c20 commit 922af42

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

test/ModuleInterface/synthesized.swift

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: %target-swift-frontend -typecheck -emit-module-interface-path - %s -disable-objc-attr-requires-foundation-module -enable-objc-interop > %t.swiftinterface
1+
// RUN: %target-swift-emit-module-interface(%t.swiftinterface) %s -module-name synthesized -disable-objc-attr-requires-foundation-module -enable-objc-interop
2+
// RUN: %target-swift-typecheck-module-from-interface(%t.swiftinterface) -module-name synthesized
23
// RUN: %FileCheck %s < %t.swiftinterface
34
// RUN: %FileCheck -check-prefix=NEGATIVE %s < %t.swiftinterface
45

@@ -7,9 +8,9 @@ public enum HasRawValue: Int {
78
// CHECK-NEXT: case a, b, c
89
case a, b = 5, c
910
// CHECK-DAG: public typealias RawValue = Swift.Int
10-
// CHECK-DAG: @inlinable public init?(rawValue: Swift.Int)
11+
// CHECK-DAG: public init?(rawValue: Swift.Int)
1112
// CHECK-DAG: public var rawValue: Swift.Int {
12-
// CHECK-DAG: @inlinable get{{$}}
13+
// CHECK-DAG: get{{$}}
1314
// CHECK-DAG: }
1415
} // CHECK: {{^}$}}
1516

@@ -20,9 +21,9 @@ public enum HasRawValue: Int {
2021
// CHECK-LABEL: @objc public enum ObjCEnum : Swift.Int32 {
2122
// CHECK-NEXT: case a, b = 5, c
2223
// CHECK-DAG: public typealias RawValue = Swift.Int32
23-
// CHECK-DAG: @inlinable public init?(rawValue: Swift.Int32)
24+
// CHECK-DAG: public init?(rawValue: Swift.Int32)
2425
// CHECK-DAG: public var rawValue: Swift.Int32 {
25-
// CHECK-DAG: @inlinable get{{$}}
26+
// CHECK-DAG: get{{$}}
2627
// CHECK-DAG: }
2728
// CHECK: {{^}$}}
2829

0 commit comments

Comments
 (0)