Skip to content

Commit c4e88f5

Browse files
committed
[test] Add a few more known type-checker crashers
1 parent d49dd18 commit c4e88f5

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// {"signature":"swift::constraints::GenericArgumentsMismatchFailure::GenericArgumentsMismatchFailure(swift::constraints::Solution const&, swift::Type, swift::Type, llvm::ArrayRef<unsigned int>, swift::constraints::ConstraintLocator*)"}
2+
// RUN: not --crash %target-swift-frontend -typecheck %s
3+
class a < b, c {
4+
typealias d = b typealias e =
5+
c class f<b, c> : a<b, c> class g<h, i> : f<(h, i), c> {
6+
j = d->e class g<h> : f<(h, i), c> {
7+
k {
8+
j = d->e
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// {"signature":"swift::GenericParamKey::findIndexIn(llvm::ArrayRef<swift::GenericTypeParamType*>) const"}
2+
// RUN: not --crash %target-swift-frontend -typecheck %s
3+
a[[[[ a a?[[a a?
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// {"signature":"(anonymous namespace)::ExprWalker::rewriteTarget(swift::constraints::SyntacticElementTarget)"}
2+
// RUN: not --crash %target-swift-frontend -typecheck %s
3+
{ Sendable(Sendable<<a
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// {"signature":"swift::Pattern::getType() const"}
2+
// RUN: not %target-swift-frontend -typecheck %s
3+
{
4+
let $a:

0 commit comments

Comments
 (0)