Skip to content

Commit 3aaeaef

Browse files
committed
[test] Add some more known crashers
1 parent 148e212 commit 3aaeaef

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// {"kind":"complete","original":"94ef21bb","signature":"swift::GenericSignatureImpl::getReducedType(swift::Type) const"}
2+
// RUN: not --crash %target-swift-ide-test -code-completion -batch-code-completion -skip-filecheck -code-completion-diagnostics -source-filename %s
3+
protocol a : b
4+
protocol c {
5+
associatedtype d : a#^^# where d.e == f
6+
}
7+
struct b<g : c
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// {"kind":"typecheck","original":"16240db9","signature":"swift::DeclContext::getParentModule() const"}
2+
// RUN: not --crash %target-swift-frontend -typecheck %s
3+
@a({
4+
unowned protocol b
5+
}
6+
let c
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// {"kind":"typecheck","original":"0004c325","signature":"swift::rewriting::RewriteContext::getRequirementMachine(swift::ProtocolDecl const*)"}
2+
// RUN: not --crash %target-swift-frontend -typecheck %s
3+
protocol a {
4+
associatedtype b: a
5+
associatedtype c: a
6+
where
7+
d == Self,
8+
c.c.b.c.c.b == Self, b.e == Self
9+
}

0 commit comments

Comments
 (0)