Skip to content

[test] Add a few more known type-checker crashers #82263

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 17, 2025
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
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// {"signature":"swift::Parser::parseStmtConditionElement(llvm::SmallVectorImpl<swift::StmtConditionElement>&, swift::Diag<>, swift::StmtKind, llvm::StringRef&)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
func a: b[ if let
func a: b[ if let
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// {"signature":"swift::TuplePattern::createSimple(swift::ASTContext&, swift::SourceLoc, llvm::ArrayRef<swift::TuplePatternElt>, swift::SourceLoc)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
switch { case (repeat a
switch { case (repeat a
3 changes: 3 additions & 0 deletions validation-test/compiler_crashers_2/1b16ff2a2ad5be.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// {"signature":"swift::Parser::parseAbstractFunctionBody(swift::AbstractFunctionDecl*, swift::optionset::OptionSet<swift::Parser::ParseDeclFlags, unsigned short>)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
@abi(func a {
4 changes: 4 additions & 0 deletions validation-test/compiler_crashers_2/1c4f5ed8bb743453.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// {"signature":"swift::Parser::parseNewDeclAttribute(swift::DeclAttributes&, swift::SourceLoc, swift::DeclAttrKind, bool)::$_4::operator()() const"}
// RUN: not --crash %target-swift-frontend -typecheck %s
class a {
class override b
4 changes: 4 additions & 0 deletions validation-test/compiler_crashers_2/1f1b9ed16e283e76.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// {"signature":"swift::LazyStoragePropertyRequest::evaluate(swift::Evaluator&, swift::VarDecl*) const"}
// RUN: not --crash %target-swift-frontend -typecheck %s
class a {
lazy(b, c) {
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// {"signature":"makeBinOp(swift::ASTContext&, swift::Expr*, swift::Expr*, swift::Expr*, swift::PrecedenceGroupDecl*, bool)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
let a= switch a { case &b as? b
let a= switch a { case &b as? b
3 changes: 3 additions & 0 deletions validation-test/compiler_crashers_2/1fb63f2dc87bc9b9.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// {"signature":"swift::Parser::parseDecl(bool, bool, llvm::function_ref<void (swift::Decl*)>, bool)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
class a { class override ( override
4 changes: 4 additions & 0 deletions validation-test/compiler_crashers_2/23dbe8bd74c95a.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// {"signature":"swift::TypeChecker::checkDeclAttributes(swift::Decl*)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
protocol a { b }
@_implements(a, b) typealias c =
3 changes: 3 additions & 0 deletions validation-test/compiler_crashers_2/259dac55924ef426.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// {"signature":"swift::GenericContext::getGenericParams() const"}
// RUN: not --crash %target-swift-frontend -typecheck %s
typealias a = () extension a : Comparable
6 changes: 6 additions & 0 deletions validation-test/compiler_crashers_2/2617a198505b47e4.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// {"signature":"swift::rewriting::RequirementMachine::getReducedShape(swift::Type, llvm::ArrayRef<swift::GenericTypeParamType*>) const"}
// RUN: not --crash %target-swift-frontend -typecheck %s
protocol a{ b < c > (c, _ : c}
protocol d : a{
b<c : e>(c, c.c) protocol e {
associatedtype c struct f : d
4 changes: 4 additions & 0 deletions validation-test/compiler_crashers_2/2b51707df3736f.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// {"signature":"swift::constraints::ConstraintSystem::recordMatchCallArgumentResult(swift::constraints::ConstraintLocator*, swift::constraints::MatchCallArgumentResult)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
if
case.a(a.b) = {
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// {"signature":"swift::Parser::parseTypeSimple(swift::Diag<>, swift::Parser::ParseTypeReason)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
subscript(a: ~b <
subscript(a: ~b <
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
struct a func b(c : a) {
{
switch
c { case .baz(c==
c { case .baz(c==
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// {"signature":"(anonymous namespace)::ExprRewriter::coerceCallArguments(swift::ArgumentList*, swift::AnyFunctionType*, swift::ConcreteDeclRef, swift::ApplyExpr*, swift::constraints::ConstraintLocatorBuilder, llvm::ArrayRef<swift::AppliedPropertyWrapper>)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
func a<b, each c>(body : (repeat each c)->b) { body(
func a<b, each c>(body : (repeat each c)->b) { body(
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// {"signature":"(anonymous namespace)::ExprWalker::rewriteTarget(swift::constraints::SyntacticElementTarget)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
{ Sendable(Sendable<<a
{ Sendable(Sendable<<a
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// {"signature":"deriveBodyRawRepresentable_init(swift::AbstractFunctionDecl*, void*)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
a enum a : Int { case = #/
a enum a : Int { case = #/
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// {"signature":"swift::constraints::simplifyLocator(swift::ASTNode&, llvm::ArrayRef<swift::constraints::ConstraintLocator::PathElement>&, swift::SourceRange&)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
struct a { eq = "" b "Self ecuador1 Self) > Bool {
struct a { eq = "" b "Self ecuador1 Self) > Bool {
let getProperties = (
\.eq as Self -> _
let eq = ""
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// {"signature":"(anonymous namespace)::ConnectedComponents::unionSets(swift::TypeVariableType*, swift::TypeVariableType*)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
let b = ( c , d a {
let b = ( c , d a {
e b
4 changes: 4 additions & 0 deletions validation-test/compiler_crashers_2/4b5eac547c7b87.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// {"signature":"checkDistributedTargetResultType(swift::ValueDecl*, swift::Type, bool)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
// REQUIRES: OS=macosx
import Distributed protocol a:DistributedActor{distributed actor:
4 changes: 4 additions & 0 deletions validation-test/compiler_crashers_2/4c84d3d852cdd1d4.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// {"signature":"swift::ProtocolConformanceRef::forAbstract(swift::Type, swift::ProtocolDecl*)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
var sixDoubles
: Double "six has the value [\( ( sixDoubles \[]) }0 \0\0 \0 \sixDoubles)"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// {"signature":"(anonymous namespace)::ExprRewriter::buildSingleCurryThunk(swift::Expr*, swift::Expr*, swift::DeclContext*, swift::FunctionType*, swift::constraints::ConstraintLocatorBuilder)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
// REQUIRES: OS=macosx
import Foundation func a(b: AnyClass?) { b (b
import Foundation func a(b: AnyClass?) { b (b
4 changes: 4 additions & 0 deletions validation-test/compiler_crashers_2/52afb182b33879f5.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// {"signature":"swift::TypeBase::getSuperclassForDecl(swift::ClassDecl const*, bool)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
class a {
typealias b = c class e : a protocol d : e, d.b
5 changes: 5 additions & 0 deletions validation-test/compiler_crashers_2/56edea24a97933f.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// {"signature":"swift::isRepresentableInObjC(swift::VarDecl const*, swift::ObjCReason)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
// REQUIRES: objc_interop
class a class b open extension b {
@objc c : a
6 changes: 6 additions & 0 deletions validation-test/compiler_crashers_2/5716fcca10bf3ff7.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// {"signature":"createImplicitConstructor(swift::NominalTypeDecl*, ImplicitConstructorKind, swift::ASTContext&)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
struct a @propertyWrapper struct b < c {
wrappedValue : c
} @propertyWrapper struct d {
var wrappedValue @b var e : a @d var f
4 changes: 4 additions & 0 deletions validation-test/compiler_crashers_2/57c3871466765f0.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// {"signature":"swift::constraints::ConstraintGraph::computeConnectedComponents(llvm::ArrayRef<swift::TypeVariableType*>)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
let i = Array(... a { " ? \(i Array* )" }
, b 1
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// {"signature":"diagSyntacticUseRestrictions(swift::Expr const*, swift::DeclContext const*, bool)::DiagnoseWalker::walkToExprPre(swift::Expr*)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
{ @#b([a:
{ @#b([a:
3 changes: 3 additions & 0 deletions validation-test/compiler_crashers_2/5ccf43ee108a37e9.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// {"signature":"swift::GenericEnvironment::mapTypeIntoContext(swift::Type) const"}
// RUN: not --crash %target-swift-frontend -typecheck %s
@abi(func a->b) func a < b
4 changes: 4 additions & 0 deletions validation-test/compiler_crashers_2/64915463735bcf5b.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// {"signature":"swift::SimpleRequest<swift::IsStaticRequest, bool (swift::FuncDecl*), (swift::RequestFlags)4>::noteCycleStep(swift::DiagnosticEngine&) const"}
// RUN: not --crash %target-swift-frontend -typecheck %s
// REQUIRES: OS=macosx
import Distributed typealias DefaultDistributedActorSystem = LocalTestingDistributedActorSystem distributed actor a{distributed...
3 changes: 0 additions & 3 deletions validation-test/compiler_crashers_2/664bfb127c7ab070.swift

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// {"signature":"(anonymous namespace)::ExprRewriter::coerceToType(swift::Expr*, swift::Type, swift::constraints::ConstraintLocatorBuilder)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
struct a < each b : Collection {
c : ( repeat each b
extension
c : ( repeat each b
extension
struct Index {
d : (repeat(each b.Index
} var endIndex : Index {
Index(d: repeat (each c).endIndex
Index(d: repeat (each c).endIndex
4 changes: 4 additions & 0 deletions validation-test/compiler_crashers_2/6cbf7908427d45f.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// {"signature":"swift::Decl::getLoc(bool) const"}
// RUN: not --crash %target-swift-frontend -typecheck %s
@_typeEraser(a) protocol b dynamic func c->some b {
d
4 changes: 4 additions & 0 deletions validation-test/compiler_crashers_2/7459efb59886f47d.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// {"signature":"swift::DerivedConformance::deriveDistributedActor(swift::ValueDecl*)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
// REQUIRES: OS=macosx
import Distributed typealias DefaultDistributedActorSystem = LocalTestingDistributedActorSystem distributed actor a{c, b
11 changes: 11 additions & 0 deletions validation-test/compiler_crashers_2/75874d2cf6f384c8.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// {"signature":"swift::constraints::ArrayLiteralToDictionaryConversionFailure::diagnoseAsError()"}
// RUN: not --crash %target-swift-frontend -typecheck %s
@propertyWrapper struct a<b{
wrappedValue: b
}
@propertyWrapper struct c<b{
wrappedValue: b
}
{
@c @a var value = if true
let : c<a<Bool>> = _value
3 changes: 3 additions & 0 deletions validation-test/compiler_crashers_2/7643813f44ce5b.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// {"signature":"swift::DeclContext::getSelfInterfaceType() const"}
// RUN: not --crash %target-swift-frontend -typecheck %s
distributed func a
3 changes: 3 additions & 0 deletions validation-test/compiler_crashers_2/771c5a9342d7660.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// {"signature":"swift::BoundGenericType::getExpandedGenericArgs()"}
// RUN: not --crash %target-swift-frontend -typecheck %s
func a func b [{ lazy var c = a(d var e = b
4 changes: 4 additions & 0 deletions validation-test/compiler_crashers_2/79ac90c35c46dbab.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// {"signature":"(anonymous namespace)::TypeJoin::visitExistentialType(swift::CanType)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
class a protocol b < c { associatedtype c }
[ b<a>, a & b
5 changes: 5 additions & 0 deletions validation-test/compiler_crashers_2/7aa9d3699dddb337.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// {"signature":"swift::PatternTypeRequest::evaluate(swift::Evaluator&, swift::ContextualPattern) const"}
// RUN: not --crash %target-swift-frontend -typecheck %s
// REQUIRES: objc_interop
@objcMembers class a open extension a {
var b
3 changes: 3 additions & 0 deletions validation-test/compiler_crashers_2/7e19cb4cc0598c1b.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// {"signature":"swift::Expr::getArgs() const"}
// RUN: not --crash %target-swift-frontend -typecheck %s
struct a<let b: Int?{ int: Int { b
5 changes: 5 additions & 0 deletions validation-test/compiler_crashers_2/84d2d3eac9e9a0.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// {"signature":"swift::emitLoadedModuleTraceIfNeeded(swift::ModuleDecl*, swift::DependencyTracker*, swift::FrontendOptions const&, swift::InputFile const&)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
@propertyWrapper struct a {
wrappedValue : b var projectedValue init(projectedValue c) {
func d(@a Int) d
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// {"signature":"(anonymous namespace)::ExprRewriter::finishApply(swift::ApplyExpr*, swift::Type, swift::constraints::ConstraintLocatorBuilder, swift::constraints::ConstraintLocatorBuilder)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
func a(b : ()->Void c : _->Void) { withoutActuallyEscaping(b do : c
func a(b : ()->Void c : _->Void) { withoutActuallyEscaping(b do : c
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
// RUN: not --crash %target-swift-frontend -typecheck %s
struct a < b : FixedWidthInteger extension a : Sequence {
c {
{ for
d self { b(truncatingIfNeeded : d
{ for
d self { b(truncatingIfNeeded : d
5 changes: 5 additions & 0 deletions validation-test/compiler_crashers_2/8a6431938ab864b3.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// {"signature":"swift::rewriting::RequirementMachine::checkCompletionResult(swift::rewriting::CompletionResult) const"}
// RUN: not --crash %target-swift-frontend -typecheck %s
protocol a : b protocol b{associatedtype c} protocol d : e,
f protocol e
: g where c : e protocol g : b protocol f : a where c : f
3 changes: 3 additions & 0 deletions validation-test/compiler_crashers_2/8a6584ca91fedd9.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// {"signature":"swift::TypeChecker::typesSatisfyConstraint(swift::Type, swift::Type, bool, swift::constraints::ConstraintKind, swift::DeclContext*, bool*)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
func a<each b>(c : repeat each b) { repeat !(d c
3 changes: 0 additions & 3 deletions validation-test/compiler_crashers_2/8ae148bd6e72fec2.swift

This file was deleted.

8 changes: 8 additions & 0 deletions validation-test/compiler_crashers_2/90773c979d435f7.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// {"signature":"swift::isOverrideBasedOnType(swift::ValueDecl const*, swift::Type, swift::ValueDecl const*)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
struct a < b {
protocol c { associatedtype d init(e : d
}
class f {
init(e : Int) {
class 4 : f, c { init(e : d
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// {"signature":"swift::constraints::AllowTypeOrInstanceMemberFailure::diagnoseAsError()"}
// RUN: not --crash %target-swift-frontend -typecheck %s
struct a func b<c >(c = a [
struct a func b<c >(c = a [
extension a {
subscript->Int
4 changes: 4 additions & 0 deletions validation-test/compiler_crashers_2/933fe28af784ae94.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// {"signature":"(anonymous namespace)::ASTScopeDeclConsumerForUnqualifiedLookup::consume(llvm::ArrayRef<swift::ValueDecl*>, swift::NullablePtr<swift::DeclContext>)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
{
@abi(func a) var b : c
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// {"signature":"lookupReplacedDecl(swift::DeclNameRef, swift::DeclAttribute const*, swift::ValueDecl const*, llvm::SmallVectorImpl<swift::ValueDecl*>&)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
{ @_dynamicReplacement(for: ) func a
{ @_dynamicReplacement(for: ) func a
3 changes: 3 additions & 0 deletions validation-test/compiler_crashers_2/93eaba9fd0e76cdf.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// {"signature":"diagnoseDictionaryLiteralDuplicateKeyEntries(swift::Expr const*, swift::DeclContext const*)::DiagnoseWalker::walkToExprPre(swift::Expr*)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
[ 1.01: "" 1.01: ""
3 changes: 3 additions & 0 deletions validation-test/compiler_crashers_2/975116cdaa9f417.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// {"signature":"swift::ExprPattern::updateMatchExpr(swift::Expr*) const::FindMatchOperatorDeclRef::walkToExprPre(swift::Expr*)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
func ~= (a) if case ~= b
4 changes: 4 additions & 0 deletions validation-test/compiler_crashers_2/983a37d76b4923e.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// {"signature":"swift::TypeBase::getNominalParent()"}
// RUN: not --crash %target-swift-frontend -typecheck %s
protocol a {
typealias b<c> = () extension b
4 changes: 4 additions & 0 deletions validation-test/compiler_crashers_2/98887170a0bfefc0.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// {"signature":"$s11swiftASTGen24evaluatePoundIfCondition10astContext13diagEnginePtr16sourceFileBuffer02ifF4Text14shouldEvaluateSiSo17BridgedASTContextV_SvSo0S9StringRefVAKSbtF"}
// RUN: not --crash %target-swift-frontend -typecheck %s
// REQUIRES: swift_swift_parser
#if canImport(#available
3 changes: 3 additions & 0 deletions validation-test/compiler_crashers_2/9967f3fc56f84a1e.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// {"signature":"formatDiagnosticArgument(llvm::StringRef, llvm::StringRef, llvm::ArrayRef<swift::DiagnosticArgument>, unsigned int, swift::DiagnosticFormatOptions, llvm::raw_ostream&)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
@propertyWrapper struct a func b(@a Int) b($c:d
3 changes: 3 additions & 0 deletions validation-test/compiler_crashers_2/9adf18151655a6ae.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// {"signature":"isVanishingTupleConformance(swift::NormalProtocolConformance*, swift::SubstitutionMap)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
typealias a<b> = (repeat b)protocol c extension a : c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// {"signature":"swift::constraints::ConstraintSystem::setTargetFor(swift::constraints::SyntacticElementTargetKey, swift::constraints::SyntacticElementTarget)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
{$0=[{} }(
{$0=[{} }(
[a:
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
// RUN: not --crash %target-swift-frontend -typecheck %s
struct a < Element {
b {
class c : Collection { typealias Index = d subscript(e :
class c : Collection { typealias Index = d subscript(e :
4 changes: 4 additions & 0 deletions validation-test/compiler_crashers_2/a0b4d94ad0e977d0.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// {"signature":"swift::findSyntacticErrorForConsume(swift::ModuleDecl*, swift::SourceLoc, swift::Expr*, llvm::function_ref<swift::Type (swift::Expr*)>)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
func a(consume : String) {
consume consume consume
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// {"signature":"swift::DeclContext::getASTContext() const"}
// RUN: not --crash %target-swift-frontend -typecheck %s
@a({ struct b }
@a({ struct b }
var c
3 changes: 3 additions & 0 deletions validation-test/compiler_crashers_2/a1776e4598146d49.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// {"signature":"(anonymous namespace)::ResolvePattern::visitCallExpr(swift::CallExpr*)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
enum a { b : _const a
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// {"signature":"swift::constraints::MissingConformanceFailure::diagnoseTypeCannotConform(swift::Type, swift::Type) const"}
// RUN: not --crash %target-swift-frontend -typecheck %s
protocol a extension a {
b { func * (Self= {
b { func * (Self= {
5 changes: 5 additions & 0 deletions validation-test/compiler_crashers_2/a81ff5cc2d29ef15.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// {"signature":"void swift::Diagnostic::gatherArgs<swift::Identifier, bool, swift::TypeRepr*>(swift::Identifier, bool, swift::TypeRepr*)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
// REQUIRES: objc_interop
@objcMembers class a open extension a {
...
3 changes: 3 additions & 0 deletions validation-test/compiler_crashers_2/a9f541ae5c40ef35.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// {"signature":"(anonymous namespace)::ABIDependencyEvaluator::computeABIDependenciesForModule(swift::ModuleDecl*)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
struct a { init? { init!
3 changes: 3 additions & 0 deletions validation-test/compiler_crashers_2/ab146c5c26ca113.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// {"signature":"getIsolationFromAttributes(swift::Decl const*, bool, bool)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
isolated let a
3 changes: 3 additions & 0 deletions validation-test/compiler_crashers_2/b44bf5a5a8274.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// {"signature":"swift::constraints::ContextualFailure::getDiagnosticFor(swift::ContextualTypePurpose, swift::Type)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
{ struct a func b< c >->c->() var : (inout a)->() = b(
3 changes: 3 additions & 0 deletions validation-test/compiler_crashers_2/b7d484d056661ff.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// {"signature":"swift::PackExpansionType::PackExpansionType(swift::Type, swift::Type, swift::RecursiveTypeProperties, swift::ASTContext const*)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
[Int : Int](Int) { a, b in a[b b= b * b
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// {"signature":"$s11swiftASTGen19addQueuedDiagnostic20queuedDiagnosticsPtr011perFrontende5StateH04text8severity4cLoc12categoryName17documentationPath015highlightRangesH0012numHighlightT013fixItsUntypedySv_SvSo16BridgedStringRefVSo0zE8SeverityVSo0z6SourceN0VA2NSPySo0Z15CharSourceRangeVGSgSiSo0Z8ArrayRefVtF"}
// RUN: not --crash %target-swift-frontend -typecheck %s
// REQUIRES: swift_swift_parser
class a { @objc ( : ( b
class a { @objc ( : ( b
3 changes: 3 additions & 0 deletions validation-test/compiler_crashers_2/b8a659988983457.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// {"signature":"swift::Parser::parseStorageRestrictionsAttribute(swift::SourceLoc, swift::SourceLoc)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
@storageRestrictions(
6 changes: 6 additions & 0 deletions validation-test/compiler_crashers_2/b93e9e54c72f13c9.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// {"signature":"swift::rewriting::RewriteSystem::processTypeDifference(swift::rewriting::TypeDifference const&, unsigned int, unsigned int, swift::rewriting::RewritePath const&)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
class a < b class c<b, h> : a<(b, h)> protocol d {
associatedtype b : c<e, f> associatedtype e associatedtype f associatedtype b
: a<g>
associatedtype g where g == e
3 changes: 3 additions & 0 deletions validation-test/compiler_crashers_2/b98d91945bd93d30.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// {"signature":"swift::adjustFunctionTypeForConcurrency(swift::AnyFunctionType*, swift::ValueDecl*, swift::DeclContext*, unsigned int, bool, llvm::function_ref<swift::Type (swift::AbstractClosureExpr const*)>, llvm::function_ref<bool (swift::ClosureExpr const*)>, llvm::function_ref<swift::Type (swift::Type)>)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
actor a func b(isolated a...) b
5 changes: 5 additions & 0 deletions validation-test/compiler_crashers_2/bafa48a4eecbfb62.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// {"signature":"swift::InFlightDiagnostic swift::DiagnosticEngine::diagnose<unsigned int, unsigned int, bool>(swift::SourceLoc, swift::Diag<unsigned int, unsigned int, bool>, swift::detail::PassArgument<unsigned int>::type, swift::detail::PassArgument<unsigned int>::type, swift::detail::PassArgument<bool>::type)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
// REQUIRES: objc_interop
class b open extension b {
@objc c : a
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// {"signature":"swift::TuplePatternElt& llvm::SmallVectorTemplateBase<swift::TuplePatternElt, true>::growAndEmplaceBack<swift::Identifier, swift::SourceLoc, swift::Pattern*&>(swift::Identifier&&, swift::SourceLoc&&, swift::Pattern*&)"}
// RUN: not --crash %target-swift-frontend -typecheck %s
switch { case .a(&b
switch { case .a(&b
Loading