[SILGen] Also handle initializers without bodies

I was surprised to see this parses fine already, but SILGen still
needs a new check.
This commit is contained in:
Jordan Rose
2018-08-16 13:46:40 -07:00
parent ed51d2255c
commit e2a245d211
2 changed files with 22 additions and 11 deletions

View File

@@ -10,6 +10,15 @@
// CHECK-LABEL: public class Test
public class Test {
// CHECK: public init(){{$}}
public init()
// CHECK: public func method(){{$}}
public func method()
// CHECK: public subscript(_: Int) -> Void{{$}}
public subscript(_: Int) -> Void { get set }
// NEGATIVE-NOT: deinit
deinit
} // CHECK: {{^}$}}