Files
swift-mirror/validation-test/compiler_crashers/0839-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

60 lines
845 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 g<T: NSObject {
class c) {
}
init() -> (b: NSObject {
let start = ")
self, a(b) {
case b {
}
class a<T -> (Any) -> V, object2: P {
struct c: A, x = g> : A, Any) {
}
}
return x {
struct S) -> {
}
f == g> T? {
class B {
}
typealias d>: A, B<S {
let h: C = Int) {
typealias e = b: 1](A, A, 3] = {
})
let c: b(1]() -> V {
}
}
func i: AnyObject) in a {
(Any) { _, ()() -> String {
var d: Any, g<T.g = {
}
c<c) -> {
}
protocol a {
}
}
let t: Any) -> {
}
static let g : c() -> () -> T> {
}
case C) -> T : d..f == { self.Type
}
}
}
struct e {
}
protocol b : A.a
}
}
}
extension NSData {
}
}
var d = c())