diff --git a/validation-test/compiler_crashers/27821-swift-typechecker-definedefaultconstructor.swift b/validation-test/compiler_crashers/27821-swift-typechecker-definedefaultconstructor.swift new file mode 100644 index 0000000000000..e214964969f30 --- /dev/null +++ b/validation-test/compiler_crashers/27821-swift-typechecker-definedefaultconstructor.swift @@ -0,0 +1,7 @@ +// RUN: not --crash %target-swift-frontend %s -parse + +// Distributed under the terms of the MIT license +// Test case submitted to project by https://github.com/practicalswift (practicalswift) +// Test case found by fuzzing + +func a{class A{struct Q{struct d{struct c{struct Q{struct Q{{}}}}}}}}class S:B}}class S:A{enum k:T.c{ +class c{struct S{{} +class p{ +struct S{ +class +a diff --git a/validation-test/compiler_crashers/27969-void.swift b/validation-test/compiler_crashers/27969-void.swift new file mode 100644 index 0000000000000..a2ad7824c4916 --- /dev/null +++ b/validation-test/compiler_crashers/27969-void.swift @@ -0,0 +1,7 @@ +// RUN: not --crash %target-swift-frontend %s -parse + +// Distributed under the terms of the MIT license +// Test case submitted to project by https://github.com/practicalswift (practicalswift) +// Test case found by fuzzing + +class A{deinit{class a{struct A{class A{enum a{protocol c}}}}}class S +struct B(" +class A{{d +enum B{ +enum S(b=1 +var f{class a}}}b}}}struct S(b< +var f=1 +let f=1 +{ +}}}struct S{{ +func bV{class b} diff --git a/validation-test/compiler_crashers/28008-swift-builtinunit-lookupcache-lookupvalue.swift b/validation-test/compiler_crashers/28008-swift-builtinunit-lookupcache-lookupvalue.swift new file mode 100644 index 0000000000000..4f23b6292ffc8 --- /dev/null +++ b/validation-test/compiler_crashers/28008-swift-builtinunit-lookupcache-lookupvalue.swift @@ -0,0 +1,11 @@ +// RUN: not --crash %target-swift-frontend %s -parse + +// Distributed under the terms of the MIT license +// Test case submitted to project by https://github.com/practicalswift (practicalswift) +// Test case found by fuzzing + +true +let a={s:{ +protocol P{ +struct c var : >(}{class a{enum B{enum A{class b T{return}{{class S String { +}}}}}class S +where { +a c{ +} +} +{ +{ +{ +{ +{:: +{}} } +{ +{ +{ +{ }}}}}}class S diff --git a/validation-test/compiler_crashers/28121-swift-typechecker-coercepatterntotype.swift b/validation-test/compiler_crashers/28121-swift-typechecker-coercepatterntotype.swift new file mode 100644 index 0000000000000..96633de65f7a5 --- /dev/null +++ b/validation-test/compiler_crashers/28121-swift-typechecker-coercepatterntotype.swift @@ -0,0 +1,9 @@ +// RUN: not --crash %target-swift-frontend %s -parse + +// Distributed under the terms of the MIT license +// Test case submitted to project by https://github.com/practicalswift (practicalswift) +// Test case found by fuzzing + +func a +struct Svar a{let a={let a{{b a diff --git a/validation-test/compiler_crashers/28124-swift-typevisitor.swift b/validation-test/compiler_crashers/28124-swift-typevisitor.swift new file mode 100644 index 0000000000000..3c965d530360b --- /dev/null +++ b/validation-test/compiler_crashers/28124-swift-typevisitor.swift @@ -0,0 +1,8 @@ +// RUN: not --crash %target-swift-frontend %s -parse + +// Distributed under the terms of the MIT license +// Test case submitted to project by https://github.com/practicalswift (practicalswift) +// Test case found by fuzzing + +import a{let s{class S:CollectionType +struct S{ +struct S{ +struct S{ +enum ESelf{{{}}class B String { + return "" + } +} +func b() { + guard let c = A.a as? String else { + return + } +} diff --git a/validation-test/compiler_crashers_fixed/28182-anonymous-namespace-favorcalloverloads.swift b/validation-test/compiler_crashers_fixed/28182-anonymous-namespace-favorcalloverloads.swift new file mode 100644 index 0000000000000..17887a0f72b7d --- /dev/null +++ b/validation-test/compiler_crashers_fixed/28182-anonymous-namespace-favorcalloverloads.swift @@ -0,0 +1,7 @@ +// RUN: not %target-swift-frontend %s -parse + +// Distributed under the terms of the MIT license +// Test case found by https://github.com/jtbandes (Jacob Bandes-Storch) +// + +func~=switch 0{case 0 diff --git a/validation-test/compiler_crashers_fixed/28183-swift-typebase-isequal.swift b/validation-test/compiler_crashers_fixed/28183-swift-typebase-isequal.swift new file mode 100644 index 0000000000000..2babfb76a7c7b --- /dev/null +++ b/validation-test/compiler_crashers_fixed/28183-swift-typebase-isequal.swift @@ -0,0 +1,7 @@ +// RUN: not %target-swift-frontend %s -parse + +// Distributed under the terms of the MIT license +// Test case found by https://github.com/jtbandes (Jacob Bandes-Storch) +// + +func~=(()->(}switch 0{case 0