File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -241,9 +241,9 @@ func test8(_ b: Bool) -> Int { // CHECK-NEXT: [[@LINE]]:30 {{.*}} : 0
241
241
if b { // CHECK-NEXT: [[@LINE]]:10 {{.*}} : 2
242
242
return 1
243
243
} // CHECK-NEXT: [[@LINE]]:6 {{.*}} : (1 - 2)
244
- } // CHECK: [[@LINE]]:4 {{.*}} : (1 - 2)
244
+ } // CHECK-NEXT : [[@LINE]]:4 {{.*}} : (1 - 2)
245
245
return 0
246
- }
246
+ } // CHECK-NEXT: }
247
247
248
248
// Test coverage with nested do-catches
249
249
// CHECK-LABEL: sil_coverage_map {{.*}} "$s15coverage_errors5test9SiyF"
@@ -362,6 +362,8 @@ func test19() throws -> Int { // CHECK-NEXT: [[@LINE]]:29 -> [[@LINE+
362
362
return x // CHECK-NEXT: [[@LINE-1]]:41 -> [[@LINE]]:11 : ((0 - 1) - 2)
363
363
} // CHECK-NEXT: }
364
364
365
+ // TODO: We probably ought to include the function call in the non-throwing
366
+ // regions here (rdar://118524386).
365
367
// CHECK-LABEL: sil_coverage_map {{.*}} "$s15coverage_errors6test20yyKF"
366
368
func test20( ) throws { // CHECK-NEXT: [[@LINE]]:22 -> [[@LINE+5]]:2 : 0
367
369
takesInts (
You can’t perform that action at this time.
0 commit comments