mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Applied the upgrade script from r236120 (LLVM) and r236121 (CFE). This is the final step of rdar://problem/20434113. Swift SVN r27925
20 lines
420 B
Swift
20 lines
420 B
Swift
// RUN: %target-swift-frontend %s -emit-ir -g -o - | FileCheck %s
|
|
|
|
class C {
|
|
let n : Int
|
|
required init (number i :Int) {
|
|
self.n = i
|
|
}
|
|
}
|
|
|
|
extension C {
|
|
class func Factory() -> Self {
|
|
// Currently we emit the static type C for r.
|
|
// CHECK: !DILocalVariable(tag: DW_TAG_auto_variable, name: "r", {{.*}}line: [[@LINE+1]]
|
|
let r = self(number: 0)
|
|
return r
|
|
}
|
|
}
|
|
|
|
let MoreDesignPatterns = C.Factory
|