]> git.lizzy.rs Git - rust.git/blob - src/test/debuginfo/empty-string.rs
Rollup merge of #58959 - asomers:issue_58907, r=Mark-Simulacrum
[rust.git] / src / test / debuginfo / empty-string.rs
1 // ignore-windows failing on win32 bot
2 // ignore-android: FIXME(#10381)
3 // compile-flags:-g
4 // min-gdb-version: 7.7
5 // min-lldb-version: 310
6
7 // === GDB TESTS ===================================================================================
8
9 // gdb-command: run
10
11 // gdb-command: print empty_string
12 // gdb-check:$1 = ""
13
14 // gdb-command: print empty_str
15 // gdb-check:$2 = ""
16
17 // === LLDB TESTS ==================================================================================
18
19 // lldb-command: run
20
21 // lldb-command: fr v empty_string
22 // lldb-check:[...]empty_string = ""
23
24 // lldb-command: fr v empty_str
25 // lldb-check:[...]empty_str = ""
26
27 fn main() {
28     let empty_string = String::new();
29
30     let empty_str = "";
31
32     zzz(); // #break
33 }
34
35 fn zzz() {}