diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2023-05-13 10:31:55 +0000 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2023-05-13 10:32:32 +0000 |
| commit | 8fb888dfaa1618838a288c41a8dc8ad24d1dadd5 (patch) | |
| tree | 4a580b2920cd8439a73afe513af04784b7470d97 /tests/debuginfo/reference-debuginfo.rs | |
| parent | 13fb0794aca868c2b73493d7e008e1b395dacea4 (diff) | |
| download | rust-8fb888dfaa1618838a288c41a8dc8ad24d1dadd5.tar.gz rust-8fb888dfaa1618838a288c41a8dc8ad24d1dadd5.zip | |
Add multiple borrow test.
Diffstat (limited to 'tests/debuginfo/reference-debuginfo.rs')
| -rw-r--r-- | tests/debuginfo/reference-debuginfo.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/debuginfo/reference-debuginfo.rs b/tests/debuginfo/reference-debuginfo.rs index 2371535b18c..85ade170ac6 100644 --- a/tests/debuginfo/reference-debuginfo.rs +++ b/tests/debuginfo/reference-debuginfo.rs @@ -52,6 +52,9 @@ // gdb-command:print *f64_ref // gdb-check:$14 = 3.5 +// gdb-command:print *f64_double_ref +// gdb-check:$15 = 3.5 + // === LLDB TESTS ================================================================================== @@ -112,6 +115,10 @@ // lldbg-check:[...]$12 = 3.5 // lldbr-check:(f64) *f64_ref = 3.5 +// lldb-command:print *f64_double_ref +// lldbg-check:[...]$13 = 3.5 +// lldbr-check:(f64) **f64_double_ref = 3.5 + #![allow(unused_variables)] #![feature(omit_gdb_pretty_printer_section)] #![omit_gdb_pretty_printer_section] @@ -158,6 +165,7 @@ fn main() { let f64_val: f64 = 3.5; let f64_ref: &f64 = &f64_val; + let f64_double_ref: &f64 = &f64_ref; zzz(); // #break } |
