Skip to content

Commit 072a459

Browse files
committed
Update test/SILGen/default_constructor.swift for native super dispatch
NFC.
1 parent ce549d7 commit 072a459

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/SILGen/default_constructor.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -emit-silgen %s | FileCheck %s
1+
// RUN: %target-swift-frontend -use-native-super-method -emit-silgen %s | FileCheck %s
22

33
struct B {
44
var i : Int, j : Float
@@ -52,7 +52,7 @@ class F : E { }
5252
// CHECK-NEXT: store [[ORIGSELF]] to [[SELF]] : $*F
5353
// CHECK-NEXT: [[SELFP:%[0-9]+]] = load [[SELF]] : $*F
5454
// CHECK-NEXT: [[E:%[0-9]]] = upcast [[SELFP]] : $F to $E
55-
// CHECK: [[E_CTOR:%[0-9]+]] = function_ref @_TFC19default_constructor1Ec{{.*}} : $@convention(method) (@owned E) -> @owned E
55+
// CHECK: [[E_CTOR:%[0-9]+]] = super_method [[SELFP]] : $F, #E.init!initializer.1 : E.Type -> () -> E , $@convention(method) (@owned E) -> @owned E
5656
// CHECK-NEXT: [[ESELF:%[0-9]]] = apply [[E_CTOR]]([[E]]) : $@convention(method) (@owned E) -> @owned E
5757

5858
// CHECK-NEXT: [[ESELFW:%[0-9]+]] = unchecked_ref_cast [[ESELF]] : $E to $F

0 commit comments

Comments
 (0)