Files
swift-mirror/test/Profiler/coverage_synthesized_witness.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 }
}