Skip to content

Commit d666025

Browse files
committed
[test] Add some more known crashers
1 parent d2935f4 commit d666025

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// {"kind":"complete","original":"9af9ff34","signature":"swift::InterfaceTypeRequest::cacheResult(swift::Type) const","signatureAssert":"Assertion failed: (!type->is<InOutType>() && \"Interface type must be materializable\"), function cacheResult"}
2+
// RUN: not --crash %target-swift-ide-test -code-completion -batch-code-completion -skip-filecheck -code-completion-diagnostics -source-filename %s
3+
[
4+
[
5+
#^^#
6+
].reduce(
7+
[:][0] {
8+
$a, b in
9+
})
10+
]
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// {"kind":"complete","original":"c2850df8","signature":"swift::ValueDecl::dumpRef(llvm::raw_ostream&) const","signatureAssert":"Assertion failed: (ext->canNeverBeBound() && \"Should have been bound by bindExtensions\"), function evaluate"}
2+
// RUN: not --crash %target-swift-ide-test -code-completion -batch-code-completion -skip-filecheck -code-completion-diagnostics -source-filename %s
3+
@abi(
4+
extension { # a(#^^#<#declaration#>)
5+
<#declaration#>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// {"kind":"typecheck","original":"470b69c1","signature":"swift::constraints::ConstraintSystem::matchFunctionResultTypes(swift::Type, swift::Type, swift::optionset::OptionSet<swift::constraints::ConstraintSystem::TypeMatchFlags, unsigned int>, swift::constraints::ConstraintLocatorBuilder)","signatureAssert":"Assertion failed: (isDecl() && \"only makes sense for declaration choices\"), function getFunctionRefInfo"}
2+
// RUN: not --crash %target-swift-frontend -typecheck %s
3+
(a:-).a {
4+
}(<#expression#>)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// {"kind":"typecheck","signature":"swift::rewriting::RewriteContext::getRelativeTermForType(swift::CanType, llvm::ArrayRef<swift::rewriting::Term>)","signatureAssert":"Assertion failed: (result.back().getKind() != Symbol::Kind::Shape), function getRelativeTermForType"}
2+
// RUN: not --crash %target-swift-frontend -typecheck %s
3+
// https://github.com/swiftlang/swift/issues/84490
4+
struct a < b > {
5+
func
6+
c < each d where (repeat each d , b) == b>()
7+
}

0 commit comments

Comments
 (0)