Files
swift-mirror/validation-test/compiler_crashers/1076-swift-lexer-getlocforendoftoken.swift
Dmitri Hrybenko 6cad796ec8 Annotate compiler crasher tests so that the tests succeed reliably when
the compiler is built without assertions

Swift SVN r24061
2014-12-20 09:42:59 +00:00

66 lines
863 B
Swift

// RUN: not --crash %target-swift-frontend %s -parse
// XFAIL: no_asserts
// 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 {