Files
swift-mirror/test/Interop/Cxx/templates/using-directive-module-interface.swift
zoecarver 2713edb19e [cxx-interop] Fix missing APIs and tests after rebase.
* 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.
2020-10-09 10:42:53 -07:00

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