From 64d98f8ee037282c35007b64c2649055c56af1db Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:03 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- tests/debuginfo/issue-14411.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/debuginfo/issue-14411.rs (limited to 'tests/debuginfo/issue-14411.rs') diff --git a/tests/debuginfo/issue-14411.rs b/tests/debuginfo/issue-14411.rs new file mode 100644 index 000000000..19609f428 --- /dev/null +++ b/tests/debuginfo/issue-14411.rs @@ -0,0 +1,15 @@ +// min-lldb-version: 310 + +// compile-flags:-g + +// No debugger interaction required: just make sure it compiles without +// crashing. + +fn test(a: &Vec) { + print!("{}", a.len()); +} + +pub fn main() { + let data = vec![]; + test(&data); +} -- cgit v1.2.3