Add basic compilation tests from swift-compiler-crashes (https://github.com/practicalswift/swift-compiler-crashes.git)

Swift SVN r21693
This commit is contained in:
Mishal Awadah
2014-09-04 01:06:26 +00:00
parent 9577b59224
commit d8ce0b80cb
36 changed files with 334 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
// RUN: %swift %s -emit-ir
// Test case submitted to project by https://github.com/tmu (Teemu Kurppa)
// rdar://18118173
class a<T : Hashable> {
var b = [T : Bool]()
init<S : SequenceType where S.Generator.Element == T>(_ c: S) {
map(c) { self.b[$0] = true }
}
}
a([1])