mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
19 lines
755 B
Swift
19 lines
755 B
Swift
// RUN: rm -rf %t && mkdir -p %t
|
|
// RUN: %build-irgen-test-overlays
|
|
// RUN: %target-swift-frontend(mock-sdk: -sdk %S/Inputs -I %t) %s -emit-ir | %FileCheck %s
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
import Foundation
|
|
|
|
// CHECK: @_T028class_with_stub_initializers3FooCN =
|
|
// -- The init() stub should get no vtable entry
|
|
// CHECK-NOT: %T28class_with_stub_initializers3FooC* (%T28class_with_stub_initializers3FooC*)*
|
|
// CHECK: %T28class_with_stub_initializers3FooC* (i64, %T28class_with_stub_initializers3FooC*)*
|
|
// -- The init() stub should get no vtable entry
|
|
// CHECK-NOT: %T28class_with_stub_initializers3FooC* (%T28class_with_stub_initializers3FooC*)*
|
|
// CHECK: {{^(@|define)}}
|
|
class Foo: NSObject {
|
|
init(x: Int64) { super.init() }
|
|
}
|