mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Infer the `-target` argument to `swift-synthesize-interface` to be the host triple when unspecified instead of emitting an error. Resolves rdar://156353450.
12 lines
447 B
Swift
12 lines
447 B
Swift
// RUN: %target-swift-synthesize-interface -module-name m1 -I %S/Inputs -o - | %FileCheck %s
|
|
// RUN: %swift-synthesize-interface -module-name m1 -I %S/Inputs -o - | %FileCheck %s
|
|
|
|
// CHECK: public struct MyStruct {
|
|
// CHECK-DAG: public init()
|
|
// CHECK-DAG: public init(value: Int32)
|
|
// CHECK-DAG: public var value: Int32
|
|
// CHECK-DAG: }
|
|
// CHECK-DAG: extension MyStruct {
|
|
// CHECK-DAG: public func printValue()
|
|
// CHECK-DAG: }
|