File tree 2 files changed +15
-7
lines changed
2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 5
5
#[ macro_export]
6
6
macro_rules! new_scope {
7
7
( ) => {
8
- let x = 1 ;
8
+ let x = 1 ; opaque ( x ) ;
9
9
}
10
10
}
Original file line number Diff line number Diff line change @@ -79,22 +79,28 @@ extern crate macro_stepping; // exports new_scope!()
79
79
// lldb-check:[...]#inc-loc2[...]
80
80
// lldb-command:next
81
81
// 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
82
88
// lldb-check:[...]#inc-loc3[...]
83
89
84
90
macro_rules! foo {
85
91
( ) => {
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
+ } ;
90
96
}
91
97
92
98
macro_rules! foo2 {
93
99
( ) => {
94
100
foo!( ) ;
95
- let x = 1 ;
101
+ let x = 1 ; opaque ( x ) ;
96
102
foo!( ) ;
97
- }
103
+ } ;
98
104
}
99
105
100
106
fn main ( ) {
@@ -118,4 +124,6 @@ fn main() {
118
124
119
125
fn zzz ( ) { ( ) }
120
126
127
+ fn opaque ( _: u32 ) { }
128
+
121
129
include ! ( "macro-stepping.inc" ) ;
You can’t perform that action at this time.
0 commit comments