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
33 lines
561 B
Swift
33 lines
561 B
Swift
// RUN: not --crash %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
|
|
|
|
f() {
|
|
({})
|
|
}
|
|
f
|
|
e)
|
|
func f<g>() -> (g, g -> g) -> g {
|
|
d j d.i = {
|
|
}
|
|
{
|
|
g) {
|
|
h }
|
|
}
|
|
protoco 0) {
|
|
}
|
|
let c = a
|
|
c()
|
|
class c {
|
|
func b((Any, c))(a: (Any, AnyObject))ing {
|
|
return { g in "\(with): \(g())" }
|
|
}
|
|
struct d<f : e, g: e where g.h == f.h> {
|
|
}
|
|
protocol e {
|
|
tyb
|
|
}
|
|
struct c<S: SequenceType, T where Optional<T> == S.Generator.Element>(xs : S)
|