mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Turning the feature "ctor of C++ foreign reference types is callable as Swift Initializers" on by default. rdar://148285972
38 lines
1.2 KiB
Swift
38 lines
1.2 KiB
Swift
// RUN: %target-swift-ide-test -print-module -module-to-print=Singleton -I %S/Inputs -source-filename=x -enable-experimental-cxx-interop | %FileCheck %s
|
|
|
|
// CHECK: class DeletedDtor {
|
|
// CHECK: init
|
|
// CHECK: func test() -> Int32
|
|
// CHECK: func testMutable() -> Int32
|
|
// CHECK: class func create() -> DeletedDtor
|
|
// CHECK: var value: Int32
|
|
// CHECK: }
|
|
// CHECK: func mutateIt(_ x: DeletedDtor)
|
|
|
|
// CHECK: class PrivateDtor {
|
|
// CHECK: init
|
|
// CHECK: func test() -> Int32
|
|
// CHECK: func testMutable() -> Int32
|
|
// CHECK: class func create() -> PrivateDtor
|
|
// CHECK: var value: Int32
|
|
// CHECK: }
|
|
// CHECK: func mutateIt(_ x: PrivateDtor)
|
|
|
|
// CHECK: class DeletedSpecialMembers {
|
|
// CHECK: init
|
|
// CHECK: func test() -> Int32
|
|
// CHECK: func testMutable() -> Int32
|
|
// CHECK: class func create() -> DeletedSpecialMembers
|
|
// CHECK: var value: Int32
|
|
// CHECK: }
|
|
// CHECK: func mutateIt(_ x: DeletedSpecialMembers)
|
|
|
|
// CHECK: class PrivateSpecialMembers {
|
|
// CHECK: init
|
|
// CHECK: func test() -> Int32
|
|
// CHECK: func testMutable() -> Int32
|
|
// CHECK: class func create() -> PrivateSpecialMembers
|
|
// CHECK: var value: Int32
|
|
// CHECK: }
|
|
// CHECK: func mutateIt(_ x: PrivateSpecialMembers)
|