mirror of
https://github.com/apple/swift.git
synced 2026-09-30 10:17:34 +02: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.
17 lines
401 B
Swift
17 lines
401 B
Swift
// FIXME: crashes under opaque values
|
|
// RUN: not --crash %target-swift-emit-silgen-ossa -o /dev/null -enable-sil-opaque-values -disable-availability-checking %s
|
|
|
|
// RUN: %target-swift-frontend -emit-silgen %s -disable-availability-checking
|
|
|
|
protocol P {
|
|
associatedtype A: P
|
|
}
|
|
|
|
struct S: P {
|
|
typealias A = S
|
|
}
|
|
|
|
func f<each T: P>(_: repeat each T) -> (repeat (each T).A.A.A.A) {}
|
|
|
|
f(S(), S(), S())
|