]> git.lizzy.rs Git - rust.git/blob - tests/debuginfo/empty-string.rs
Merge commit '7d53619064ab7045c383644cb445052d2a3d46db' into sync_cg_clif-2023-02-09
[rust.git] / tests / debuginfo / empty-string.rs
1 // ignore-windows failing on win32 bot
2 // ignore-android: FIXME(#10381)
3 // compile-flags:-g
4 // min-gdb-version: 8.1
5 // ignore-gdb-version: 7.11.90 - 8.0.9
6 // min-lldb-version: 310
7
8 // === GDB TESTS ===================================================================================
9
10 // gdb-command: run
11
12 // gdb-command: print empty_string
13 // gdb-check:$1 = ""
14
15 // gdb-command: print empty_str
16 // gdb-check:$2 = ""
17
18 // === LLDB TESTS ==================================================================================
19
20 // lldb-command: run
21
22 // lldb-command: fr v empty_string
23 // lldb-check:[...]empty_string = "" { vec = size=0 }
24
25 // lldb-command: fr v empty_str
26 // lldb-check:[...]empty_str = "" { data_ptr = [...] length = 0 }
27
28 fn main() {
29     let empty_string = String::new();
30
31     let empty_str = "";
32
33     zzz(); // #break
34 }
35
36 fn zzz() {}