mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Tests that crash the compiler are expected to fail under AddressSanitizer. Swift SVN r24071
30 lines
532 B
Swift
30 lines
532 B
Swift
// RUN: not --crash %target-swift-frontend %s -parse
|
|
// XFAIL: asan
|
|
|
|
// Distributed under the terms of the MIT license
|
|
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
|
|
// Test case found by fuzzing
|
|
|
|
protocol A {
|
|
func d
|
|
typealias B : B) {
|
|
class c() as String) -> Any] as String) -> <S : d where g.init(range.Type
|
|
}))!)
|
|
}
|
|
}
|
|
func d<T) -> {
|
|
public subscript () {
|
|
}
|
|
class func b> {
|
|
func d<1 {
|
|
}
|
|
return {
|
|
var b {
|
|
typealias e : A, let h, f: ({
|
|
}
|
|
typealias f == b) -> U -> {
|
|
}
|
|
class a {
|
|
let a {
|
|
let h
|