mirror of
https://github.com/apple/swift.git
synced 2026-10-02 10:58:03 +02:00
Tests require the compiler built with SwiftCompilerSources since a long time. So this lit feature was redundant anyway. We can remove it.
20 lines
536 B
Swift
20 lines
536 B
Swift
// RUN: %target-swift-emit-ir -verify -verify-ignore-unrelated %s -enable-experimental-feature Embedded -wmo
|
|
|
|
// REQUIRES: optimized_stdlib
|
|
// REQUIRES: swift_feature_Embedded
|
|
|
|
public struct MyStruct: CustomStringConvertible {
|
|
public var description: String { "" }
|
|
}
|
|
|
|
public struct MyStreamableStruct: TextOutputStreamable {
|
|
public func write<Target: TextOutputStream>(to target: inout Target) {}
|
|
}
|
|
|
|
public func foo(s: MyStruct) {
|
|
_ = String(describing: s)
|
|
}
|
|
|
|
public func bar(s: MyStreamableStruct) {
|
|
_ = String(describing: s)
|
|
} |