Files
swift-mirror/validation-test/compiler_crashers_fixed/01076-swift-lexer-getlocforendoftoken.swift
practicalswift c4866885c8 Rename old crash cases to match the current naming scheme.
Will allow for easy import of crash cases from swift-compiler-crashes.
2015-12-10 16:50:15 +01:00

66 lines
835 B
Swift

// RUN: not %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 w<r>: c {
init(g: r) {
struct t : o {
}
q t<where n.v == t<v : o u m : v {
}
struct c<e> {
}
}
struct e : f {
}
func i<g : g, e : f where e.f == g> (c: e) {
}
func i<h : f where h.f == c> (c: h) {
}
class a<f : g, g : g where f.f == g> {
}
protocol g {
}
struct c<h : g> : g {
typealias e = a<c<h>, f>
protocol b {
}
struct c {
func e() {
docol t {
}
protocol d : t {
}
protocol g : t {
}
})
}
protocol e {
}
struct m<v : e> {
}
protocol n {
g == o>(n: m<v>) {
}
}
struct e<v> {
}
struct d<x> : e {
func d(d: d.p) {
}
}
class e<v : e> {
}
class A<T : A> {
}
func c<d {
enum c {
func e
var _ = e
}
}
protocol a {