// RUN: %target-swift-frontend -Xllvm -sil-full-demangle -profile-generate -profile-coverage-mapping -emit-sil %s | %FileCheck %s // RUN: %target-swift-frontend -profile-generate -profile-coverage-mapping -emit-ir %s struct S0 { init(a: Int, b: Int) { } func f1(a: Int, b: Int) -> Int { return a } } // CHECK-LABEL: sil_coverage_map {{.*}}// coverage_curry.testS0CurriedInstanceMethods(s0: coverage_curry.S0, a: Swift.Int, b: Swift.Int) // CHECK-NEXT: [[@LINE+2]]:59 -> [[@LINE+10]]:2 : 0 // CHECK-NEXT: } func testS0CurriedInstanceMethods(s0: S0, a: Int, b: Int) { _ = S0.f1(s0)(a: a, b: a) _ = (S0.f1)(s0)(a: a, b: a) _ = ((S0.f1))(s0)(a: a, b: a) _ = S0.f1(a:b:)(s0)(a, b) _ = S0.init(a:b:)(0, 0) let f1OneLevel = S0.f1(s0) let f1Init = S0.init(a:b:) }