Skip to content

Compiler crashers: Sync with https://github.com/practicalswift/swift-compiler-crashes #280

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 4 commits into from
Dec 6, 2015
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -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<T{func a<h{func b<T where h.g=a{
Original file line number Diff line number Diff line change
@@ -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

let P{if{{}class d{enum a}}}class S<T{func a<h{func b<T where h.g=a{
Original file line number Diff line number Diff line change
@@ -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{struct S{protocol a{func a<f:f.l}}
Original file line number Diff line number Diff line change
@@ -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

extension String{{}func c{class a{struct h{let a:d struct d<f:f.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// 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

var b{
let a{
struct d<T where H:A
{struct c<I{
var _=B
struct B
struct B
}
}}enum a{
struct Q{enum A{
struct S:BooleanType d
Original file line number Diff line number Diff line change
@@ -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

struct B{struct X<T:T.a}{class({{{{{{{{{([{{{{{{{{{{{{{{{a"
Original file line number Diff line number Diff line change
@@ -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

var:{{let
v{class B<f:d
struct d<f:f.c}}{
Original file line number Diff line number Diff line change
@@ -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

let a{{struct Q<T where g:T{class A{class B:A{func a
Original file line number Diff line number Diff line change
@@ -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

enum B<T where h:b{var f=[]class A{let a=A}struct A
Original file line number Diff line number Diff line change
@@ -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

{{}class C<T where g:b{enum S<D{
struct A{{}}struct A
let b=A
Original file line number Diff line number Diff line change
@@ -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

for b:{if{}}{{class S<T{func a<h{func b<T where h.g=a{
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// 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

enum A
protocol A{
typealias f:a
func a<T where f:d
Original file line number Diff line number Diff line change
@@ -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

struct Q<T where h:A{class b<a{class b<func b{{t{{}}struct b}func x{let a=b}if{{struct c{}struct S{class b{struct B
Original file line number Diff line number Diff line change
@@ -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

struct S<T where h=a{class d<T{var _{{{class B:d
Original file line number Diff line number Diff line change
@@ -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

init}{var:t
class d<f:f.c}init
Original file line number Diff line number Diff line change
@@ -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

struct B<T where h:A{var _=true{}struct A{let r=A}struct A
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// 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

var A{{enum A<T where g:C{
class a{class b
{
class b:a{
class a
let a{
e
Original file line number Diff line number Diff line change
@@ -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 B<A{protocol A{func g:B}}func f<f:f.B
Original file line number Diff line number Diff line change
@@ -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

let a{enum B{class B{struct d{struct Q{let a{struct S<f:f.c}protocol C
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// 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 d
}{struct d{{
}
struct S{
class d<T where a=b{
class d{
func b
let a{
{
class d{class d{{{{}
{
}{}}}class A{
var f=b
struct S{
var a
Original file line number Diff line number Diff line change
@@ -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

{struct Q{protocol a{class T func f:T{}}}class A{class A{func g<f:f.c
Original file line number Diff line number Diff line change
@@ -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

struct S<T{let:{class b.protocol P{func f func f:T.C
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// 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{
typealias f=c
protocol c
class B<T:T.E
Original file line number Diff line number Diff line change
@@ -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{{{}{}}struct b{{}struct S{enum a{{}{{{{}}}}class S<T{func a<h{func b<T where h.g=a{}}{{{{}}}}}}class S<T{{{}}class d
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// 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
class b{
enum b{
struct e
{{{
{{{{
}}}}}}class S<T{func a<h{func b<T where h.g=a{}}class d
Original file line number Diff line number Diff line change
@@ -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 B{struct a}struct B<T:T.a
Original file line number Diff line number Diff line change
@@ -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

{struct a{class B:var f=B{}}enum b{struct S{struct c<T where h:a{struct S<A{struct Q{struct c,let a=c
Original file line number Diff line number Diff line change
@@ -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

let a{enum B{struct b}struct A{struct b<f:f.a
Original file line number Diff line number Diff line change
@@ -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

<c}struct B<T where h:a{struct d{struct c<b{var b={class a}let f=c{
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// 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 B<T{
let f{
struct Q{
let f=B<T
struct B{
class B<T where h:a{
enum B<T
struct B var f=B
class B T
Original file line number Diff line number Diff line change
@@ -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 B<func b{enum b{class B{}}}class S<T{func a<h{func b<T where h.g=p
Original file line number Diff line number Diff line change
@@ -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

{struct Q<T{init{}class B:a
class a{
func a<f:f.s
Original file line number Diff line number Diff line change
@@ -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

var d{{{}}class A{enum b{enum B{func a<f:f.c
7 changes: 7 additions & 0 deletions validation-test/compiler_crashers/27857-vtable.swift
Original file line number Diff line number Diff line change
@@ -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

let a{let f=class A{class B{{}class d<f:f.c
Original file line number Diff line number Diff line change
@@ -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

let a{enum b{struct Q<S let a{func f<f:f.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// 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

{enum b
struct S<T where h:d{
let:Int=b<T
struct Q{struct A{let s=A{
Original file line number Diff line number Diff line change
@@ -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

class d<T where H:P{class d<H{
class a{
}let
let a{s
a
15 changes: 15 additions & 0 deletions validation-test/compiler_crashers/27862-swift-type-walk.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// 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 g{
{
}
class a a{
struct d<T where I:A{class d{
let t:a{
}}}if{
class
b
Original file line number Diff line number Diff line change
@@ -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{class T{let i{struct c<f:f.c{}}enum A{enum b
Original file line number Diff line number Diff line change
@@ -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 c{{}protocol a{protocol a{{{{}}}}typealias e:a}struct Q<f:f.c
Loading