[tests] Update tests based on new template name importing rules.

This commit is contained in:
zoecarver
2023-02-12 15:03:06 -08:00
parent f9e111c21a
commit 985db63e2b
24 changed files with 102 additions and 103 deletions

View File

@@ -1,21 +1,21 @@
// RUN: %target-swift-ide-test -print-module -module-to-print=TemplatesWithForwardDecl -I %S/Inputs -source-filename=x -enable-experimental-cxx-interop | %FileCheck %s
// CHECK: enum NS1 {
// CHECK-NEXT: struct __CxxTemplateInstN3NS115ForwardDeclaredIiEE {
// CHECK-NEXT: struct ForwardDeclared<Int32> {
// CHECK-NEXT: init()
// CHECK-NEXT: }
// CHECK-NEXT: @available(*, unavailable, message: "Un-specialized class templates are not currently supported. Please use a specialization of this type.")
// CHECK-NEXT: struct ForwardDeclared<T> {
// CHECK-NEXT: }
// CHECK-NEXT: struct __CxxTemplateInstN3NS14DeclIiEE {
// CHECK-NEXT: struct Decl<Int32> {
// CHECK-NEXT: init()
// CHECK-NEXT: init(fwd: NS1.__CxxTemplateInstN3NS115ForwardDeclaredIiEE)
// CHECK-NEXT: init(fwd: NS1.ForwardDeclared<Int32>)
// CHECK-NEXT: typealias MyInt = Int32
// CHECK-NEXT: var fwd: NS1.__CxxTemplateInstN3NS115ForwardDeclaredIiEE
// CHECK-NEXT: static let intValue: NS1.__CxxTemplateInstN3NS14DeclIiEE.MyInt
// CHECK-NEXT: var fwd: NS1.ForwardDeclared<Int32>
// CHECK-NEXT: static let intValue: NS1.Decl<Int32>.MyInt
// CHECK-NEXT: }
// CHECK-NEXT: @available(*, unavailable, message: "Un-specialized class templates are not currently supported. Please use a specialization of this type.")
// CHECK-NEXT: struct Decl<T> {
// CHECK-NEXT: }
// CHECK-NEXT: typealias di = NS1.__CxxTemplateInstN3NS14DeclIiEE
// CHECK-NEXT: typealias di = NS1.Decl<Int32>
// CHECK-NEXT: }