Files
swift-mirror/validation-test/compiler_crashers/1375-clang-declvisitor-base-clang-declvisitor-make-const-ptr.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

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