Skip to content

Commit be33d17

Browse files
authored
Merge pull request #21739 from aschwaighofer/add_sil_check_to_test_case
2 parents db0e273 + c26ad86 commit be33d17

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/SILOptimizer/outliner.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ public func testOutlining() {
5454
gizmo.doSomething(arr)
5555
}
5656

57+
// CHECK-LABEL: sil @$s8outliner9dontCrash1ayyp_tF : $@convention(thin) (@in_guaranteed Any) -> () {
58+
// CHECK: [[OBJ:%.*]] = open_existential_ref {{.*}} : $AnyObject to $@opened("{{.*}}") (AnyObject)
59+
// CHECK: [[METH:%.*]] = objc_method [[OBJ]] : $@opened("{{.*}}") (AnyObject), #Treeish.treeishChildren!1.foreign : <Self where Self : Treeish> (Self) -> () -> [Any]?
60+
// CHECK: [[RES:%.*]] = apply [[METH]]([[OBJ]]) : $@convention(objc_method)
61+
// CHECK: switch_enum [[RES]]
62+
5763
// CHECK-LABEL: sil shared [noinline] @$sSo5GizmoC14stringPropertySSSgvgToTeab_ : $@convention(thin) (@in_guaranteed Gizmo) -> @owned Optional<String>
5864
// CHECK: bb0(%0 : $*Gizmo):
5965
// CHECK: %1 = load %0 : $*Gizmo

0 commit comments

Comments
 (0)