mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Tests that crash the compiler are expected to fail under AddressSanitizer. Swift SVN r24071
39 lines
662 B
Swift
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
|