Files
swift-mirror/validation-test/compiler_crashers_fixed/00362-clang-stmt-statisticsenabled.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

75 lines
923 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
func e<l {
j {
}
func p(l: Any, g: Any) -> (((Any, Any) -> Any) -> Any) {
return {
(p: (Any, Any) -> Any) -> Any in
func n<n : l,) {
}
j j j.o = {
t) {
}
protocol o {
}
class j: o{ class func o {}
e o<j : u> {
}
func n<q>() {
b b {
}
}
func n(j: Any, t: Any) -> (((Any, Any) -> Any) -> Any) {
k {
}
}
}
struct c<e> {
}
func b<c {
enum b {
class A : NSManagedObject {
func b<T: A>() -> [T] {
}
}
class d<c>: NSObject {
init(b: c) {
}
}
}
class f<p : k, p : k where p.n == p> : n {
}
class f<p, p> {
}
protocol k {
}
o: i where k.j == f> {l func k() { }
}
func k<o {
enum k {
() {
}
}
var f1: Int -> Int = {
}
}
snit(foo: T) {
}
}
}
import {
{
f
}
}
protocol f {
class func c()
}
class e: f {
class func c