mirror of
https://github.com/apple/swift.git
synced 2026-10-26 20:15:53 +01:00
The opaque values test coverage I initially added will emit to stdout, which is noisy for people's logs if the test is failing for some other reason.
19 lines
476 B
Swift
19 lines
476 B
Swift
// RUN: %target-swift-emit-silgen-ossa -o /dev/null -enable-sil-opaque-values %s
|
|
// RUN: %target-swift-emit-silgen %s
|
|
|
|
// Exercises a SILGen code path that would trigger an assertion.
|
|
|
|
public struct Anchor<Value> {}
|
|
|
|
extension Anchor where Value == String {
|
|
@backDeployed(before: macOS 26.0)
|
|
public static func fixedGenericParam() -> Value {
|
|
return "hello"
|
|
}
|
|
|
|
@backDeployed(before: macOS 26.0)
|
|
public static func generic<T>(_ t: T) -> T {
|
|
return t
|
|
}
|
|
}
|