Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions validation-test/compiler_crashers_2/3f12a4864c3e4b.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// {"kind":"typecheck","original":"a275ad03","signature":"swift::Parser::parseTypeInlineArray(swift::SourceLoc)","signatureAssert":"Assertion failed: (Tok.is(K) && \"Consuming wrong token kind\"), function consumeToken"}
// RUN: not --crash %target-swift-frontend -typecheck %s
[a & 3 of
7 changes: 7 additions & 0 deletions validation-test/compiler_crashers_2/6b3f4ab0a969ffc0.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// {"kind":"typecheck","original":"8e10a6ec","signature":"(anonymous namespace)::Verifier::verifyChecked(swift::IdentityExpr*)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
struct a<b> {
}
func c<each d>(e: repeat a<each d>) {
(try repeat each e)
}
10 changes: 10 additions & 0 deletions validation-test/compiler_crashers_2/9ebf7cbda04a5be8.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// {"kind":"typecheck","original":"5b785ef0","signature":"swift::ASTWalker::PreWalkResult<swift::Expr*> (anonymous namespace)::Verifier::dispatchVisitPreExpr<swift::OpenExistentialExpr*>(swift::OpenExistentialExpr*)","signatureAssert":"Assertion failed: (isa<To>(Val) && \"cast<Ty>() argument of incompatible type!\"), function cast"}
// RUN: not --crash %target-swift-frontend -typecheck %s
extension Dictionary {
a(b: Sequence)
{
{
for c d b {
var values =
[] ?? {
values.append(c
10 changes: 10 additions & 0 deletions validation-test/compiler_crashers_2/a79aa9924bdc378.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// {"kind":"emit-silgen","original":"941ad66b","signature":"swift::CanTypeWrapperTraits<swift::ReferenceStorageType>::type swift::SILType::castTo<swift::ReferenceStorageType>() const","signatureAssert":"Assertion failed: (isa<To>(Val) && \"cast<Ty>() argument of incompatible type!\"), function cast"}
// RUN: not --crash %target-swift-frontend -emit-silgen %s
@available(macOS 14.0, *)
struct a<each b> {
var c: (repeat each b) {
(repeat {
each c
})
}
}
3 changes: 3 additions & 0 deletions validation-test/compiler_crashers_2/d4a53522d2dce157.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// {"kind":"typecheck","original":"e0be092d","signature":"swift::constraints::IgnoreAssignmentDestinationType::diagnoseForAmbiguity(llvm::ArrayRef<std::__1::pair<swift::constraints::Solution const*, swift::constraints::ConstraintFix const*>>) const"}
// RUN: not --crash %target-swift-frontend -typecheck %s
stride = (a:2).0