Skip to content

Commit 76ebf23

Browse files
committed
Add regression test for rdar://57549596 / https://bugs.swift.org/browse/SR-11874
1 parent b7537cf commit 76ebf23

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/IDE/print_swift_module.swift

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-swift-frontend -emit-module-path %t/print_swift_module.swiftmodule -emit-module-doc -emit-module-doc-path %t/print_swift_module.swiftdoc %s
33
// RUN: %target-swift-ide-test -print-module -print-interface -no-empty-line-between-members -module-to-print=print_swift_module -I %t -source-filename=%s > %t.syn.txt
4+
// RUN: %target-swift-ide-test -print-module -access-filter-internal -no-empty-line-between-members -module-to-print=print_swift_module -I %t -source-filename=%s > %t.syn.internal.txt
45
// RUN: %FileCheck %s -check-prefix=CHECK1 < %t.syn.txt
6+
// RUN: %FileCheck %s -check-prefix=CHECK2 < %t.syn.internal.txt
57

68
public protocol P1 {
79
/// foo1 comment from P1
@@ -53,3 +55,14 @@ public struct City {
5355

5456
// CHECK1: /// returnsAlias() comment
5557
// CHECK1-NEXT: func returnsAlias() -> print_swift_module.Alias<Int>
58+
59+
// CHECK2: struct Event {
60+
public struct Event {
61+
public var start: Int
62+
public var end: Int?
63+
public var repeating: ((), Int?)
64+
public var name = "untitled event"
65+
66+
// CHECK2: init(start: Int, end: Int? = nil, repeating: ((), Int?) = ((), nil), name: String = "untitled event")
67+
}
68+
// CHECK2: }

0 commit comments

Comments
 (0)