Files
swift-mirror/validation-test/compiler_crashers/0204-swift-parser-parsedeclprotocol.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

54 lines
840 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 prefix(with: String) -> <T>(() -> T) -> String { func b
clanType, Bool) -> Bool {
)
}
strs d
typealias b> : b {
typealias d = h
typealias e = a<c<h>, d>
}
protocol A {
typealias B
func b(B)
}
struct X<Y> : A {
func b(b: X.Type) {
}
}
struct Abject {
a {
}
class b<h, i> {
}
protocol c {
typealias g
}
protocol a {
class func c()
}
class b:s return f(x)
}(x1, f1)
let crashes: Int = { x, f {ct)) {
b(a)
}
}
func c<d {
enum c {
func e
var _ = e
}
}
ng {
return { g in "\(with): \(g())" }
}
protocol a : a {
}