- Notifications
You must be signed in to change notification settings - Fork 10.5k
/
Copy pathcoverage_empty_region_stack1.swift
21 lines (19 loc) · 813 Bytes
/
coverage_empty_region_stack1.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// RUN: %target-swift-frontend -Xllvm -sil-full-demangle -profile-generate -profile-coverage-mapping -emit-sil -module-name coverage_empty %s | %FileCheck %s
// RUN: %target-swift-frontend -profile-generate -profile-coverage-mapping -emit-ir %s
// Skip the sil prologue, which reproduces the swift source of this file
// and confounds FileCheck.
// CHECK-LABEL: sil @main
func singleDefaultArgument(i:Int={
// CHECK: sil_coverage_map {{.*}}closure #1 () -> Swift.Int in default argument 0
// CHECK-NEXT: [[@LINE-2]]:37 -> [[@LINE+6]]:2 : 0
// CHECK-NEXT: }
structSingleDefaultArgumentStruct{
letsdasi:Int
}
return2
}()){
// CHECK: sil_coverage_map {{.*}}singleDefaultArgument(i: Swift.Int) -> ()
// CHECK-NEXT: [[@LINE-2]]:6 -> [[@LINE+3]]:2 : 0
// CHECK-NEXT: }
print(i)
}