Skip to content

Compiler crashers: Sync with https://github.com/practicalswift/swift-compiler-crashes #396

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 10, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// RUN: not --crash %target-swift-frontend %s -emit-silgen
// Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
// http://www.openradar.me/19423783

protocol A {
var a: Int {
get
}
}
class B: A {
let a = 42
}
let b = B()
let c = [b]
let d = c as [A]
7 changes: 7 additions & 0 deletions validation-test/compiler_crashers/24887-no-stack-trace.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// RUN: not --crash %target-swift-frontend %s -c -o /dev/null
// Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/codafi (Robert Widmann)

struct X<T> {
let s : X<X>
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// 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/adocyn (adocyn)

extension CollectionType {
func f<T where T=Generator>() {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// RUN: not --crash %target-swift-frontend %s -emit-silgen
// Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/airspeedswift (airspeedswift)

["1"].map { String($0) }
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// RUN: not --crash %target-swift-frontend %s -emit-silgen
// Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/airspeedswift (airspeedswift)

struct S<T> {
var a: [T] = []
}
extension S {
init(other: [T]) {
a = other
}
}
2 changes: 1 addition & 1 deletion validation-test/compiler_crashers/README
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ SOFTWARE.
Repository: https://github.com/practicalswift/swift-compiler-crashes.git
Web URL: https://github.com/practicalswift/swift-compiler-crashes

Tests updated as of revision 736d5c8bee75f676ff3750e4ad3165d81059fe03
Tests updated as of revision 26d1d4cb0a23cc55722a153b82f4f8ab9f8f4653