mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Tests that crash the compiler are expected to fail under AddressSanitizer. Swift SVN r24071
72 lines
1.0 KiB
Swift
72 lines
1.0 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
|
|
|
|
}
|
|
import Foundation
|
|
var d, i: A {
|
|
deinit {
|
|
(i(c> T! {
|
|
}
|
|
}
|
|
typealias h.Type
|
|
}
|
|
extension NSData {
|
|
typealias d>() {
|
|
d<B : AnyObject.b where S(p: ((e()
|
|
struct c == [c<U : Any) -> T, T) {
|
|
a
|
|
import Foundation
|
|
var b() -> <T).B<S : (f<c<T, T where k) -> {
|
|
}
|
|
}
|
|
return nil
|
|
map() {
|
|
import Foundation
|
|
class func a() -> {
|
|
class func g<T : A : a {
|
|
assert()
|
|
class c
|
|
}
|
|
}
|
|
println(e<b
|
|
var b: P> (e?
|
|
"""foo")
|
|
}
|
|
let a {
|
|
func x):Any) {
|
|
}
|
|
}
|
|
class A = {
|
|
func e()
|
|
class c = F>()")
|
|
let end = i() -> (z(Any) {
|
|
assert(() -> Any in
|
|
let h: String {
|
|
}
|
|
protocol A {
|
|
private class a!))
|
|
return d.c(AnyObject, AnyObject) {
|
|
[unowned self.h: B
|
|
}
|
|
}
|
|
}
|
|
default:
|
|
}
|
|
convenience init(bytes: SequenceType> V>(Any, Any) {
|
|
}
|
|
var f.E == B
|
|
self.init(f<T) {
|
|
}
|
|
self.init(range: d : ExtensibleCollectionType>(")
|
|
return NSData((a)
|
|
struct D : A) {
|
|
func g> Any) -> {
|
|
}
|
|
}
|
|
func a<T : a {
|
|
f
|