Files
swift-mirror/test/SynthesizeInterfaceTool/synthesize-interface.swift
Allan Shortlidge 3ffb218e9a swift-synthesize-interface: Infer target triple.
Infer the `-target` argument to `swift-synthesize-interface` to be the host
triple when unspecified instead of emitting an error.

Resolves rdar://156353450.
2025-07-28 12:42:57 -07:00

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: }