Files
swift-mirror/validation-test/compiler_crashers/0363-swift-scopeinfo-addtoscope.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

50 lines
741 B
Swift

// RUN: not %target-swift-frontend %s -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
func j<f: l: e -> e = {
{
l) {
m }
}
protocol k {
class func j()
}
class e: k{ class func j
}
class i {
func d((h: (Any, AnyObject)) {
}
}
func d<i>() -> (i, i -> i) -> i {
i j i.f = {
}
protocol d {
}
class i: d{ class func f {}
enum A : String {
}
struct d<f : e, g: e where g.h == f.h> {
}
}
extension d) {
}
func a() {
c a(b: Int = 0) {
}
func m<u>() -> (u, u -> u) -> u {
p o p.s = {
}
{
o.m == o> (m: o) {
}
st.C == E> {s func c() { }
}
}
st> {
}
func prefix(with: Strin-> <r>(() -> r) -> h {
n { u o "\(v): \(u()" }