mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
* Update tests that relied on old behavior. * Use mangleCXXName instead of mangleCXXCtor. * Call VisitCXXRecordDecl not VisitRecordDecl from VisitClassTemplateSpecializationDecl. This allows template constructors to be imported and called correctly.
16 lines
688 B
Swift
16 lines
688 B
Swift
// RUN: %target-swift-ide-test -print-module -module-to-print=UsingDirective -I %S/Inputs -source-filename=x -enable-cxx-interop | %FileCheck %s
|
|
|
|
// CHECK: struct __CxxTemplateInst12MagicWrapperI10IntWrapperE {
|
|
// CHECK-NEXT: var t: IntWrapper
|
|
// CHECK-NEXT: init()
|
|
// CHECK-NEXT: init(t: IntWrapper)
|
|
// CHECK-NEXT: mutating func getValuePlusArg(_ arg: Int32) -> Int32
|
|
// CHECK-NEXT: }
|
|
// CHECK-NEXT: struct IntWrapper {
|
|
// CHECK-NEXT: var value: Int32
|
|
// CHECK-NEXT: init()
|
|
// CHECK-NEXT: init(value: Int32)
|
|
// CHECK-NEXT: mutating func getValue() -> Int32
|
|
// CHECK-NEXT: }
|
|
// CHECK-NEXT: typealias UsingWrappedMagicNumber = __CxxTemplateInst12MagicWrapperI10IntWrapperE
|