mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Simply returns "None" for C++ records in "getSpecialManglingContext" (same logic as namespaces) to prevent an assertion.
58 lines
1.2 KiB
Swift
58 lines
1.2 KiB
Swift
// RUN: %target-swift-ide-test -print-module -module-to-print=NestedRecords -I %S/Inputs -source-filename=x -enable-cxx-interop | %FileCheck %s
|
|
|
|
// CHECK: struct S1 {
|
|
// CHECK: struct S2 {
|
|
// CHECK: var A: Bool
|
|
// CHECK: }
|
|
// CHECK: }
|
|
|
|
// CHECK: struct S3 {
|
|
// CHECK: struct S4 {
|
|
// CHECK: }
|
|
// CHECK: }
|
|
|
|
// CHECK: struct U1 {
|
|
// CHECK: struct U2 {
|
|
// CHECK: }
|
|
// CHECK: }
|
|
|
|
// CHECK: struct U3 {
|
|
// CHECK: struct E1 : Equatable, RawRepresentable {
|
|
// CHECK: typealias RawValue = {{UInt32|Int32}}
|
|
// CHECK: }
|
|
// CHECK: }
|
|
|
|
// CHECK: struct U4 {
|
|
// CHECK: struct S5 {
|
|
// CHECK: }
|
|
// CHECK: }
|
|
|
|
// CHECK: struct S6 {
|
|
// CHECK: struct E3 : Equatable, RawRepresentable {
|
|
// CHECK: typealias RawValue = {{UInt32|Int32}}
|
|
// CHECK: }
|
|
// CHECK: init()
|
|
// CHECK: }
|
|
|
|
// CHECK: struct S7 {
|
|
// CHECK: struct U5 {
|
|
// CHECK: struct U6 {
|
|
// CHECK: }
|
|
// CHECK: }
|
|
// CHECK: }
|
|
|
|
// CHECK: struct S8 {
|
|
// CHECK: struct S9 {
|
|
// CHECK: struct U7 {
|
|
// CHECK: }
|
|
// CHECK: }
|
|
// CHECK: }
|
|
|
|
// CHECK: struct S10 {
|
|
// CHECK: struct U8 {
|
|
// CHECK: struct E4 : Equatable, RawRepresentable {
|
|
// CHECK: typealias RawValue = {{UInt32|Int32}}
|
|
// CHECK: }
|
|
// CHECK: }
|
|
// CHECK: }
|