]> git.lizzy.rs Git - rust.git/blob - tests/debuginfo/should-fail.rs
Merge commit '7d53619064ab7045c383644cb445052d2a3d46db' into sync_cg_clif-2023-02-09
[rust.git] / tests / debuginfo / should-fail.rs
1 // min-lldb-version: 310
2
3 // == Test [gdb|lldb]-[command|check] are parsed correctly ===
4 // should-fail
5 // needs-run-enabled
6 // compile-flags:-g
7
8 // === GDB TESTS ===================================================================================
9
10 // gdb-command: run
11
12 // gdb-command: print x
13 // gdb-check:$1 = 5
14
15 // === LLDB TESTS ==================================================================================
16
17 // lldb-command:run
18
19 // lldb-command:print x
20 // lldb-check:[...]$0 = 5
21
22 // === CDB TESTS ==================================================================================
23
24 // cdb-command:g
25
26 // cdb-command:dx x
27 // cdb-check:string [...] : 5 [Type: [...]]
28
29 fn main() {
30     let x = 1;
31
32     zzz(); // #break
33 }
34
35 fn zzz() {()}