@@ -29,11 +29,11 @@ func testSymbols() {
29
29
30
30
// CHECK-IR-LABEL: define{{.*}} void @_T08typedefs18testVTableBuildingy3Lib4UserC4user_tF
31
31
public func testVTableBuilding( user: User ) {
32
- // The important thing in this CHECK line is the "i64 28 ", which is the offset
32
+ // The important thing in this CHECK line is the "i64 29 ", which is the offset
33
33
// for the vtable slot for 'lastMethod()'. If the layout here
34
- // changes, please check that offset 28 is still correct.
34
+ // changes, please check that offset 29 is still correct.
35
35
// CHECK-IR-NOT: ret
36
- // CHECK-IR: getelementptr inbounds void (%T3Lib4UserC*)*, void (%T3Lib4UserC*)** %{{[0-9]+}}, {{i64 28 |i32 31 }}
36
+ // CHECK-IR: getelementptr inbounds void (%T3Lib4UserC*)*, void (%T3Lib4UserC*)** %{{[0-9]+}}, {{i64 29 |i32 32 }}
37
37
_ = user. lastMethod ( )
38
38
} // CHECK-IR: ret void
39
39
@@ -168,6 +168,10 @@ open class User {
168
168
// CHECK-RECOVERY: /* placeholder for init(wrappedRequired:) */
169
169
public required init ( wrappedRequired: WrappedInt ) { }
170
170
171
+ // CHECK: {{^}} init(wrappedRequiredInSub: WrappedInt)
172
+ // CHECK-RECOVERY: /* placeholder for init(wrappedRequiredInSub:) */
173
+ public init ( wrappedRequiredInSub: WrappedInt ) { }
174
+
171
175
public func lastMethod( ) { }
172
176
}
173
177
// CHECK: {{^}$}}
@@ -195,7 +199,8 @@ open class User {
195
199
// 25 CHECK-VTABLE-NEXT: #User.init!initializer.1:
196
200
// 26 CHECK-VTABLE-NEXT: #User.init!allocator.1:
197
201
// 27 CHECK-VTABLE-NEXT: #User.init!initializer.1:
198
- // 28 CHECK-VTABLE-NEXT: #User.lastMethod!1:
202
+ // 28 CHECK-VTABLE-NEXT: #User.init!initializer.1:
203
+ // 29 CHECK-VTABLE-NEXT: #User.lastMethod!1:
199
204
// CHECK-VTABLE: }
200
205
201
206
@@ -264,6 +269,10 @@ open class UserSub : User {
264
269
// CHECK: required init(wrappedRequired: WrappedInt?)
265
270
// CHECK-RECOVERY: /* placeholder for init(wrappedRequired:) */
266
271
public required init ( wrappedRequired: WrappedInt ? ) { super. init ( ) }
272
+
273
+ // CHECK: required init(wrappedRequiredInSub: WrappedInt?)
274
+ // CHECK-RECOVERY: /* placeholder for init(wrappedRequiredInSub:) */
275
+ public required override init ( wrappedRequiredInSub: WrappedInt ? ) { super. init ( ) }
267
276
}
268
277
// CHECK: {{^}$}}
269
278
// CHECK-RECOVERY: {{^}$}}
0 commit comments