Files
swift-mirror/test/Interop/Cxx/namespace/templates-with-forward-decl-module-interface.swift
John Hui 5bd319a59a [MemberLoading] Split storage and non-storage member loading
Doing so allows further granularity when lazily loading members.
2026-02-07 17:17:34 -08:00

22 lines
1.1 KiB
Swift

// 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 ForwardDeclared<CInt> {
// 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 Decl<CInt> {
// CHECK-NEXT: init(fwd: NS1.ForwardDeclared<CInt>)
// CHECK-NEXT: init()
// CHECK-NEXT: var fwd: NS1.ForwardDeclared<CInt>
// CHECK-NEXT: typealias MyInt = Int32
// CHECK-NEXT: static var intValue: NS1.Decl<CInt>.MyInt { get }
// 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.Decl<CInt>
// CHECK-NEXT: }