File tree Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 55#[ macro_export]
66macro_rules! new_scope {
77 ( ) => {
8- let x = 1 ;
8+ let x = 1 ; opaque ( x ) ;
99 }
1010}
Original file line number Diff line number Diff line change @@ -79,22 +79,28 @@ extern crate macro_stepping; // exports new_scope!()
7979// lldb-check:[...]#inc-loc2[...]
8080// lldb-command:next
8181// lldb-command:frame select
82+ // lldb-check:[...]#inc-loc1[...]
83+ // lldb-command:next
84+ // lldb-command:frame select
85+ // lldb-check:[...]#inc-loc2[...]
86+ // lldb-command:next
87+ // lldb-command:frame select
8288// lldb-check:[...]#inc-loc3[...]
8389
8490macro_rules! foo {
8591 ( ) => {
86- let a = 1 ;
87- let b = 2 ;
88- let c = 3 ;
89- }
92+ let a = 1 ; opaque ( a ) ;
93+ let b = 2 ; opaque ( b ) ;
94+ let c = 3 ; opaque ( c ) ;
95+ } ;
9096}
9197
9298macro_rules! foo2 {
9399 ( ) => {
94100 foo!( ) ;
95- let x = 1 ;
101+ let x = 1 ; opaque ( x ) ;
96102 foo!( ) ;
97- }
103+ } ;
98104}
99105
100106fn main ( ) {
@@ -118,4 +124,6 @@ fn main() {
118124
119125fn zzz ( ) { ( ) }
120126
127+ fn opaque ( _: u32 ) { }
128+
121129include ! ( "macro-stepping.inc" ) ;
You can’t perform that action at this time.
0 commit comments