mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This fixes compiler_crashers tests that use the ObjC interface on iOS hardware SDKs. Swift SVN r23458
50 lines
741 B
Swift
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()" }
|