mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
16 lines
625 B
Swift
16 lines
625 B
Swift
// RUN: %target-swift-frontend -Xllvm -sil-full-demangle -suppress-warnings -profile-generate -profile-coverage-mapping -emit-sorted-sil -emit-sil -module-name coverage_deinit %s | %FileCheck %s
|
|
// REQUIRES: objc_interop
|
|
|
|
import Foundation
|
|
|
|
public class Derived: NSString {
|
|
// CHECK-LABEL: sil @_T015coverage_deinit7DerivedCfD
|
|
// CHECK: builtin "int_instrprof_increment"
|
|
// CHECK-NEXT: super_method {{.*}} : $Derived, #NSString.deinit!deallocator.foreign
|
|
deinit {
|
|
}
|
|
}
|
|
|
|
// CHECK-LABEL: sil_coverage_map "{{.*}}coverage_deinit.swift" _T015coverage_deinit7DerivedCfD
|
|
// CHECK-NEXT: [[@LINE-5]]:10 -> [[@LINE-4]]:4 : 0
|