Skip to content

Commit 32e0305

Browse files
[NFC] Add test for self-cycles in module trace.
1 parent db46d04 commit 32e0305

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module Outer {
2+
module Inner {
3+
export Outer.Inner
4+
}
5+
export Outer
6+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// Check that this doesn't crash due to a self-cycle. rdar://67435472
2+
// RUN: not --crash %target-swift-frontend %s -emit-module -o /dev/null -emit-loaded-module-trace-path /dev/null -I %S/Inputs/imported_modules/SelfImport
3+
4+
import Outer

0 commit comments

Comments
 (0)