diff --git a/validation-test/IDE/crashers/ASTMangler-mangleDeclAsUSR-8b1e4c.swift b/validation-test/IDE/crashers/ASTMangler-mangleDeclWithPrefix-8b1e4c.swift similarity index 75% rename from validation-test/IDE/crashers/ASTMangler-mangleDeclAsUSR-8b1e4c.swift rename to validation-test/IDE/crashers/ASTMangler-mangleDeclWithPrefix-8b1e4c.swift index a8ac615a5ddbe..d0a2aad31fad0 100644 --- a/validation-test/IDE/crashers/ASTMangler-mangleDeclAsUSR-8b1e4c.swift +++ b/validation-test/IDE/crashers/ASTMangler-mangleDeclWithPrefix-8b1e4c.swift @@ -1,3 +1,3 @@ -// {"kind":"complete","original":"2201e4ed","signature":"swift::Mangle::ASTMangler::mangleDeclAsUSR(swift::ValueDecl const*, llvm::StringRef)"} +// {"kind":"complete","original":"2201e4ed","signature":"swift::Mangle::ASTMangler::mangleDeclWithPrefix(swift::ValueDecl const*, llvm::StringRef)"} // RUN: not --crash %target-swift-ide-test -code-completion -batch-code-completion -skip-filecheck -code-completion-diagnostics -source-filename %s enum a b { + #^^# diff --git a/validation-test/IDE/crashers_fixed/ASTMangler-appendDeclName-439908.swift b/validation-test/IDE/crashers_fixed/ASTMangler-appendDeclName-439908.swift new file mode 100644 index 0000000000000..567f49260cfa9 --- /dev/null +++ b/validation-test/IDE/crashers_fixed/ASTMangler-appendDeclName-439908.swift @@ -0,0 +1,6 @@ +// {"kind":"complete","original":"dbc89b63","signature":"swift::Mangle::ASTMangler::appendDeclName(swift::ValueDecl const*, swift::DeclBaseName, bool)","signatureAssert":"Assertion failed: (!getABIDecl(decl) && \"caller should make sure we get ABI decls\"), function appendDeclName"} +// RUN: %target-swift-ide-test -code-completion -batch-code-completion -skip-filecheck -code-completion-diagnostics -source-filename %s +@abi(func a()) struct b { + @#^^#< #declaration + # > +} diff --git a/validation-test/compiler_crashers/ConstraintSystem-compareSolutions-dcf902.swift b/validation-test/compiler_crashers/ConstraintSystem-compareSolutions-dcf902.swift new file mode 100644 index 0000000000000..89fb16109641b --- /dev/null +++ b/validation-test/compiler_crashers/ConstraintSystem-compareSolutions-dcf902.swift @@ -0,0 +1,6 @@ +// {"kind":"typecheck","original":"2e9096bf","signature":"swift::constraints::ConstraintSystem::compareSolutions(swift::constraints::ConstraintSystem&, llvm::ArrayRef, swift::constraints::SolutionDiff const&, unsigned int, unsigned int)","signatureAssert":"Assertion failed: (isa(Val) && \"cast() argument of incompatible type!\"), function cast"} +// RUN: not --crash %target-swift-frontend -typecheck %s +extension Sequence { + b>(d ) + { + [(a:2), (0.0 a : 1)].b(\.a diff --git a/validation-test/compiler_crashers/ConstraintSystem-diagnoseAmbiguityWithFixes-cb6638.swift b/validation-test/compiler_crashers/ConstraintSystem-diagnoseAmbiguityWithFixes-cb6638.swift new file mode 100644 index 0000000000000..3fbcca51314fd --- /dev/null +++ b/validation-test/compiler_crashers/ConstraintSystem-diagnoseAmbiguityWithFixes-cb6638.swift @@ -0,0 +1,5 @@ +// {"kind":"typecheck","original":"1806b993","signature":"swift::constraints::ConstraintSystem::diagnoseAmbiguityWithFixes(llvm::SmallVectorImpl&)"} +// RUN: not --crash %target-swift-frontend -typecheck %s +func a(repeat inout each b) -> (repeat each b +( ; +let c 0 = a( 12.3 + 3 diff --git a/validation-test/compiler_crashers/ValueDecl-copyFormalAccessFrom-d1e149.swift b/validation-test/compiler_crashers/ValueDecl-copyFormalAccessFrom-d1e149.swift new file mode 100644 index 0000000000000..91dfc4f4564f6 --- /dev/null +++ b/validation-test/compiler_crashers/ValueDecl-copyFormalAccessFrom-d1e149.swift @@ -0,0 +1,6 @@ +// {"kind":"typecheck","original":"46f686fe","signature":"swift::ValueDecl::copyFormalAccessFrom(swift::ValueDecl const*, bool)","signatureAssert":"Assertion failed: (!hasAccess() && \"access already set\"), function setAccess"} +// RUN: not --crash %target-swift-frontend -typecheck %s +// REQUIRES: OS=macosx +import Distributed +distributed open actor a { +} diff --git a/validation-test/compiler_crashers/expandMacroDefinition-848da8.swift b/validation-test/compiler_crashers/expandMacroDefinition-848da8.swift new file mode 100644 index 0000000000000..fbd90eff5297b --- /dev/null +++ b/validation-test/compiler_crashers/expandMacroDefinition-848da8.swift @@ -0,0 +1,6 @@ +// {"kind":"typecheck","signature":"expandMacroDefinition(swift::ExpandedMacroDefinition, swift::MacroDecl*, swift::SubstitutionMap, swift::ArgumentList*)"} +// RUN: not --crash %target-swift-frontend -typecheck %s +@expression macro a() +@expression macro b() = + #a() +#b