mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This fixes compiler_crashers tests that use the ObjC interface on iOS hardware SDKs. Swift SVN r23458
46 lines
763 B
Swift
46 lines
763 B
Swift
// RUN: rm -rf %t/clang-module-cache
|
|
// RUN: not --crash %target-swift-frontend %s -module-cache-path %t/clang-module-cache -parse
|
|
|
|
// Distributed under the terms of the MIT license
|
|
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
|
|
// Test case found by fuzzing
|
|
|
|
{
|
|
return x in c {
|
|
() { c<T.a<T : T : b
|
|
class c == D> {
|
|
let t: T> {
|
|
return { c(n: AnyObject) {
|
|
}
|
|
}
|
|
protocol b = F>() {
|
|
}(b.init(a
|
|
enum B {
|
|
typealias R = B, g = i> {
|
|
}
|
|
}
|
|
let v: P {
|
|
}
|
|
protocol A : NSObject {
|
|
}
|
|
public var f = d>(n: T> {
|
|
}
|
|
}
|
|
S() -> () -> {
|
|
protocol C = {
|
|
class func c<S : SequenceType, k : T : A<Y> (true }
|
|
}
|
|
self.h : C {
|
|
import Foundation
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
protocol A {
|
|
let c: d {
|
|
}
|
|
func f(f, let foo as BooleanType))-> U -> {
|
|
println("[1
|
|
typealias A : A {
|