fix debuginfo scoping of let-statements
This commit is contained in:
parent
7eb64b86ce
commit
9be593032d
9 changed files with 132 additions and 25 deletions
|
|
@ -34,6 +34,17 @@
|
|||
// gdb-check:$6 = 20
|
||||
// gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$5 = 10.5
|
||||
// gdb-command:print y
|
||||
// gdb-check:$6 = 20
|
||||
// gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$5 = 11.5
|
||||
// gdb-command:print y
|
||||
// gdb-check:$6 = 20
|
||||
// gdb-command:continue
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
|
|
@ -57,6 +68,18 @@
|
|||
// lldb-check:[...]$5 = 20
|
||||
// lldb-command:continue
|
||||
|
||||
// lldb-command:print x
|
||||
// lldb-check:[...]$4 = 10.5
|
||||
// lldb-command:print y
|
||||
// lldb-check:[...]$5 = 20
|
||||
// lldb-command:continue
|
||||
|
||||
// lldb-command:print x
|
||||
// lldb-check:[...]$4 = 11.5
|
||||
// lldb-command:print y
|
||||
// lldb-check:[...]$5 = 20
|
||||
// lldb-command:continue
|
||||
|
||||
#![feature(omit_gdb_pretty_printer_section)]
|
||||
#![omit_gdb_pretty_printer_section]
|
||||
|
||||
|
|
@ -77,6 +100,15 @@ fn main() {
|
|||
|
||||
zzz(); // #break
|
||||
sentinel();
|
||||
|
||||
let x = {
|
||||
zzz(); // #break
|
||||
sentinel();
|
||||
11.5
|
||||
};
|
||||
|
||||
zzz(); // #break
|
||||
sentinel()
|
||||
}
|
||||
|
||||
fn zzz() {()}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue