Files
swift-mirror/test/embedded/string-describing.swift
Erik Eckstein 3243f87204 tests: remove the lit feature swift_in_compiler
Tests require the compiler built with SwiftCompilerSources since a long time.
So this lit feature was redundant anyway. We can remove it.
2026-06-30 14:47:56 +02:00

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