Skip to content

Commit b8c67d8

Browse files
committed
Fortify test.
1 parent 4e8b642 commit b8c67d8

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

Diff for: tests/debuginfo/auxiliary/macro-stepping.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
#[macro_export]
66
macro_rules! new_scope {
77
() => {
8-
let x = 1;
8+
let x = 1; opaque(x);
99
}
1010
}

Diff for: tests/debuginfo/macro-stepping.rs

+14-6
Original file line numberDiff line numberDiff 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

8490
macro_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

9298
macro_rules! foo2 {
9399
() => {
94100
foo!();
95-
let x = 1;
101+
let x = 1; opaque(x);
96102
foo!();
97-
}
103+
};
98104
}
99105

100106
fn main() {
@@ -118,4 +124,6 @@ fn main() {
118124

119125
fn zzz() {()}
120126

127+
fn opaque(_: u32) {}
128+
121129
include!("macro-stepping.inc");

0 commit comments

Comments
 (0)