-
Notifications
You must be signed in to change notification settings - Fork 10.5k
/
Copy pathnested-records-module-interface.swift
95 lines (83 loc) · 2.33 KB
/
nested-records-module-interface.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
// 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: }
// CHECK: struct HasForwardDeclaredNestedType {
// CHECK: struct ForwardDeclaredType {
// CHECK: init()
// CHECK: }
// CHECK: struct NormalSubType {
// CHECK: init()
// CHECK: }
// CHECK: init()
// CHECK: }
// CHECK: struct HasForwardDeclaredTemplateChild {
// CHECK: struct ForwardDeclaredClassTemplate<T> {
// CHECK: }
// CHECK: struct DeclaresForwardDeclaredClassTemplateFriend {
// CHECK: init()
// CHECK: }
// CHECK: init()
// CHECK: }
// CHECK: extension NestedDeclIsAFirstForwardDeclaration {
// CHECK: struct ForwardDeclaresFriend {
// CHECK: init()
// CHECK: }
// CHECK: struct ForwardDeclaredFriend {
// CHECK: init()
// CHECK: }
// CHECK: static func takesFriend(_ b: NestedDeclIsAFirstForwardDeclaration.ForwardDeclaredFriend)
// CHECK: struct HasNestedForwardDeclaration {
// CHECK: struct IsNestedForwardDeclaration {
// CHECK: var a: Int32
// CHECK: init()
// CHECK: init(a: Int32)
// CHECK: }
// CHECK: init()
// CHECK: }
// CHECK: static func takesHasNestedForwardDeclaration(_: NestedDeclIsAFirstForwardDeclaration.HasNestedForwardDeclaration)
// CHECK: }