mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
12 lines
339 B
Swift
12 lines
339 B
Swift
// RUN: %target-swift-frontend -Xllvm -sil-full-demangle -profile-generate -profile-coverage-mapping -emit-sil %s
|
|
// RUN: %target-swift-frontend -profile-generate -profile-coverage-mapping -emit-ir %s
|
|
|
|
protocol P {
|
|
associatedtype T
|
|
@_borrowed subscript(x: T) -> Int { get }
|
|
}
|
|
|
|
struct S<T> : P {
|
|
subscript(x: T) -> Int { return 0 }
|
|
}
|