Files
swift-mirror/validation-test/compiler_crashers/0429-vtable.swift
Denis Vnukov 68b756bf90 Fix for rdar://19548610, Fuzzing Swift: performSema(...) crashes: Assertion failed: (Done && "Parser returned early?")
Parser may stop at some erroneous constructions like stray #else or #endif, in some cases closing brace ‘}’, etc…
continue parsing until we are done.



Swift SVN r24822
2015-01-29 21:51:06 +00:00

69 lines
970 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
}
struct S {
static let i: B<Q<T where A"""
}
}
import Foundation
return "\(g, e)
return true
struct d: U -> T) {
}()
extension NSSet {
class B
protocol e == { x }
func g<T) {
}
typealias e : d = b: a {
self)
protocol e = T, b = b: A? = b> T
struct B<Q<T](")
let f : c> (b
let c : AnyObject, AnyObject) {
}
struct d: T.B
class A : A> (self)?
var d = [unowned self.dynamicType)
import Foundation
c> {
let c: a = b: T : NSObject {
func f.b in
typealias e == c>: String {
typealias e {
if c {
private class C) {
}
protocol c = b
}
protocol a = {
protocol P {
func compose()
class func b
}("")
}
let t: P> {
import Foundation
}
import Foundation
struct B<()
let i: T>? = A>()
let c
}
protocol P {
}
}
d.h
import Foundation
S<T -> {
}
}
d.c()
}
enum S<T>Bool