mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Applied the upgrade script from r236120 (LLVM) and r236121 (CFE). This is the final step of rdar://problem/20434113. Swift SVN r27925
15 lines
453 B
Swift
15 lines
453 B
Swift
// RUN: %target-swift-frontend -primary-file %s -emit-ir -g -o - | FileCheck %s
|
|
|
|
func outer(a: Int) -> Int {
|
|
// Inner functions have a linkage name of "closure[0-9]+", but
|
|
// their DW_AT_name is preserved.
|
|
|
|
// CHECK: !DISubprogram(name: "inner", linkageName: "_TFF16nested_functions5outerFSiSiL_5innerfSiSi"
|
|
// CHECK-SAME: line: [[@LINE+1]]
|
|
func inner(b: Int) -> Int {
|
|
return a+b
|
|
}
|
|
|
|
return inner(42)
|
|
}
|