Files
swift-mirror/validation-test/compiler_crashers/1001-swift-parser-parsedeclimport.swift
Chris Willmore 513b05c283 compiler_crashers: Use %target-swift-frontend instead of %swift -sdk %sdk
This fixes compiler_crashers tests that use the ObjC interface on
iOS hardware SDKs.

Swift SVN r23458
2014-11-20 00:32:59 +00:00

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 {