mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
When the new mangling is enabled permanently, the option can be removed from the RUN command lines again.
21 lines
1.1 KiB
Swift
21 lines
1.1 KiB
Swift
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -assume-parsing-unqualified-ownership-sil %s -profile-generate -profile-coverage-mapping -emit-sil -o - | %FileCheck %s --check-prefix=SIL
|
|
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -assume-parsing-unqualified-ownership-sil %s -profile-generate -profile-coverage-mapping -emit-ir -o - | %FileCheck %s --check-prefix=IR
|
|
|
|
// SIL-DAG: sil hidden @_T08coverage2f1yyF
|
|
// SIL-DAG: string_literal utf8 "{{.*}}coverage.swift:{{.*}}_T08coverage2f1yyF"
|
|
// IR-DAG: @"__profn_{{.*}}coverage.swift:_T08coverage2f1yyF" {{.*}} c"{{.*}}coverage.swift:_T08coverage2f1yyF"
|
|
internal func f1() {}
|
|
|
|
// SIL-DAG: sil private @_T08coverage2f233_[[F2HASH:[_a-zA-Z0-9]+]]
|
|
// SIL-DAG: string_literal utf8 "{{.*}}coverage.swift:_T08coverage2f233_[[F2HASH]]"
|
|
// IR-DAG: @"__profn_{{.*}}coverage.swift:_T08coverage2f233_[[F2HASH:[_a-zA-Z0-9]+]]" {{.*}} c"{{.*}}coverage.swift:_T08coverage2f233_[[F2HASH]]"
|
|
private func f2() {}
|
|
|
|
// SIL-DAG: sil @_T08coverage2f3yyF
|
|
// SIL-DAG: string_literal utf8 "_T08coverage2f3yyF"
|
|
// IR-DAG: @__profn__T08coverage2f3yyF {{.*}} c"_T08coverage2f3yyF"
|
|
public func f3() {
|
|
f1();
|
|
f2();
|
|
}
|