mirror of
https://github.com/apple/swift.git
synced 2026-06-27 12:25:55 +02:00
21 lines
832 B
Swift
21 lines
832 B
Swift
// RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil %s -profile-generate -profile-coverage-mapping -emit-sil -o - | %FileCheck %s --check-prefix=SIL
|
|
// RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil %s -profile-generate -profile-coverage-mapping -emit-ir -o - | %FileCheck %s --check-prefix=IR
|
|
|
|
// IR-NOT: __llvm_coverage_names
|
|
// IR-NOT: __profn
|
|
|
|
// SIL-DAG: sil hidden @$S8coverage2f1yyF
|
|
// SIL-DAG: string_literal utf8 "{{.*}}coverage.swift:{{.*}}$S8coverage2f1yyF"
|
|
internal func f1() {}
|
|
|
|
// SIL-DAG: sil private @$S8coverage2f233_[[F2HASH:[_a-zA-Z0-9]+]]
|
|
// SIL-DAG: string_literal utf8 "{{.*}}coverage.swift:$S8coverage2f233_[[F2HASH]]"
|
|
private func f2() {}
|
|
|
|
// SIL-DAG: sil @$S8coverage2f3yyF
|
|
// SIL-DAG: string_literal utf8 "$S8coverage2f3yyF"
|
|
public func f3() {
|
|
f1();
|
|
f2();
|
|
}
|