Files
swift-mirror/validation-test/compiler_crashers/1358-swift-lexer-leximpl.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

39 lines
662 B
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 f: String {
extension A where I) {
}
var d {
func d.R
protocol c : a {
class func a)
protocol d {
}
}
extension NSSet {
}
static let c] = {
}
}
var f: b[0x31] as BooleanType, range.C: String {
class A {
}
return "".Type) -> {
}
class A {
let c {
return [Int) {
let n1: T -> {
return {
class A, f<T, let t: () {
println(e(g> Any) {
let b {
func g([0
protocol d : T, e(A.c(Any, T>() { c, self.init(f.c {
typealias F>(f(i