mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Changing the design of this to maintain more local context information and changing the lookup API. This reverts commit 4f2ff1819064dc61c20e31c7c308ae6b3e6615d0. Swift SVN r24432
13 lines
483 B
Swift
13 lines
483 B
Swift
// RUN: %swift -target x86_64-apple-macosx10.9 -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: \00_TFF16nested_functions5outerFSiSiL_5innerfSiSi\00[[@LINE+1]]\000\001\000\000\000\00{{.*}}[ DW_TAG_subprogram ] [line [[@LINE+1]]] [def] {{.*}}[inner]
|
|
func inner(b: Int) -> Int {
|
|
return a+b
|
|
}
|
|
|
|
return inner(42)
|
|
}
|