]>
git.proxmox.com Git - rustc.git/blob - src/test/debuginfo/issue-12886.rs
1 // ignore-windows failing on 64-bit bots FIXME #17638
9 // gdb-check:[...]24[...]let s = Some(5).unwrap(); // #break
10 // gdb-command:continue
12 #![feature(omit_gdb_pretty_printer_section)]
13 #![omit_gdb_pretty_printer_section]
15 // IF YOU MODIFY THIS FILE, BE CAREFUL TO ADAPT THE LINE NUMBERS IN THE DEBUGGER COMMANDS
17 // This test makes sure that gdb does not set unwanted breakpoints in inlined functions. If a
18 // breakpoint existed in unwrap(), then calling `next` would (when stopped at `let s = ...`) stop
19 // in unwrap() instead of stepping over the function invocation. By making sure that `s` is
20 // contained in the output, after calling `next` just once, we can be sure that we did not stop in
21 // unwrap(). (The testing framework doesn't allow for checking that some text is *not* contained in
22 // the output, which is why we have to make the test in this kind of roundabout way)
24 let s
= Some(5).unwrap(); // #break