mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
41e97a0a3f
Fixes https://github.com/rust-lang/rust/issues/120553 Fixes https://github.com/rust-lang/rust/issues/48462
30 lines
740 B
Rust
30 lines
740 B
Rust
//@ ignore-gdb
|
|
|
|
//@ compile-flags:-g
|
|
|
|
// === LLDB TESTS =================================================================================
|
|
|
|
// lldb-command:run
|
|
|
|
// lldb-command:print pathbuf
|
|
// lldb-check:[...] "/some/path" { inner = "/some/path" { inner = { inner = size=10 { [0] = '/' [1] = 's' [2] = 'o' [3] = 'm' [4] = 'e' [5] = '/' [6] = 'p' [7] = 'a' [8] = 't' [9] = 'h' } } } }
|
|
// lldb-command:po pathbuf
|
|
// lldb-check:"/some/path"
|
|
// lldb-command:print path
|
|
// lldb-check:[...] "/some/path" { data_ptr = [...] length = 10 }
|
|
// lldb-command:po path
|
|
// lldb-check:"/some/path"
|
|
|
|
use std::path::Path;
|
|
|
|
fn main() {
|
|
let path = Path::new("/some/path");
|
|
let pathbuf = path.to_path_buf();
|
|
|
|
zzz(); // #break
|
|
}
|
|
|
|
fn zzz() {
|
|
()
|
|
}
|