Skip to content

Commit 4184984

Browse files
committed
Debug Info: Represent macro expansions as inlined functions.
This allows the debugger to choose whether to display the expanded macro (inlined) or the original source code (parent frame). rdar://102916513
1 parent 6a0f68e commit 4184984

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/Macros/macro_expand.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
// Debug info SIL testing
1212
// RUN: %target-swift-frontend -emit-sil -enable-experimental-feature Macros -enable-experimental-feature Macros -load-plugin-library %t/%target-library-name(MacroDefinition) -I %swift-host-lib-dir %s -module-name MacroUser -o - -g | %FileCheck --check-prefix CHECK-SIL %s
1313

14+
// Debug info IR testing
15+
// RUN: %target-swift-frontend -emit-ir -enable-experimental-feature Macros -enable-experimental-feature Macros -load-plugin-library %t/%target-library-name(MacroDefinition) -I %swift-host-lib-dir %s -module-name MacroUser -o - -g | %FileCheck --check-prefix CHECK-IR %s
16+
1417
// Execution testing
1518
// RUN: %target-build-swift -g -enable-experimental-feature Macros -enable-experimental-feature Macros -load-plugin-library %t/%target-library-name(MacroDefinition) -I %swift-host-lib-dir -L %swift-host-lib-dir %s -o %t/main -module-name MacroUser
1619
// RUN: %target-run %t/main | %FileCheck %s

0 commit comments

Comments
 (0)