Files
swift-mirror/validation-test/compiler_crashers/0389-swift-diagnosticengine-flushactivediagnostic.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

67 lines
933 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
func compose<T {
class C> {
return d<U -> : Array<C) {
class A {
extension NSSet {
extension NSSet {
}
}
}
deinit {
}
}
}(f: AnyObject, f: C {
let t: C) {
}
return g, object2: U : $0) {
extension NSSet {
}
}
}
typealias e == f<T: Array<A? {
typealias e = b<D> Int -> Self {
protocol d = {
}
return g<D> {
let h: C) {
}
}
}
func call() {
}
}
protocol a = c: String {
self.b in x }
var f : e: c: Array<T! {
private class A {
var d = compose<T where T> {
}
}
protocol P {
}
func f: C {
}
return b<T>) {
}
}
return ""A>(x: d {
let a {
}
private let t: B? = F>: A {
}
}
private let t: AnyObject) {
struct d.e == {
typealias h: AnyObject.b {
}
func g<T.d<f : AnyObject) -> T : d {
typealias E
}