Files
swift-mirror/validation-test/compiler_crashers/1315-swift-parser-parsebraceitems.swift
Dmitri Hrybenko 5d41b6ac9f Validation testsuite: annotate compiler crashers for AddressSanitizer
Tests that crash the compiler are expected to fail under
AddressSanitizer.

Swift SVN r24071
2014-12-22 18:22:07 +00:00

110 lines
1.3 KiB
Swift

// RUN: not --crash %target-swift-frontend %s -parse
// XFAIL: asan
// 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<1 {
let f = D> a {
}
extension A {
}
class func a<d = g<j : () {
f<b(n: l.B = ["
}
get {
}
enum b {
protocol c == [0)
""""\() {
self.a<Int>) {
var f.advance()
import Foundation
var d where S(i(v: B<T.Type) {
import Foundation
func a
case c>: a {
enum b {
return !)
class func c<T.e == B
d(n: A? = g<d
return nil
public var f(i: A {
}
}
a() {
typealias h, ()
struct c {
}
map(true }
println())-> String {
b(b(() -> V {
}
func a
case A"
class A> e() {
func i: ()
enum B : end)) {
class A? {
self.e where l) -> String {
}
}
class func f.d {
}
return [1):
}
}
convenience init() {
println() {
let a {
}
let a {
}
}
protocol A {
let a
var b<T) -> Self {
default:
typealias B
S.Generator.f : S<b(A(A>() -> T {
protocol b {
}
init(#object1, k : AnyObject.c
typealias d((b(b
return $0
return NSData(a)
}
}
}
protocol d where A<T>) {
class A {
}
}
let h> {
let h = Swift.advance(A, length: A<D> : B)
var d {
func f.Generator.A"
func e<d<D>()
}
protocol a {
S<d
typealias B
}
}
func d
func e(false))
func e!
}
}
}
class A<T where T : String {
func f: a {
typealias b = b: d {
}
class B : SequenceType> ()
}
}
}