From 192f862c93b0f89f47e4104e90e90882776e1c06 Mon Sep 17 00:00:00 2001 From: Martin Nordholts Date: Wed, 15 Oct 2025 16:50:36 +0200 Subject: [PATCH] tests: activate misspelled `gdb-check` in `function-arg-initialization.rs` In 9253e1206e91f5bd7 a bunch of `gdbr-check` (for `rust-gdb`) and `gdbg-check` (for plain `gdb`) was added. But in two places the author accidentally wrote `gdbt-check` instead. This commit fixes this typo. --- tests/debuginfo/function-arg-initialization.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/debuginfo/function-arg-initialization.rs b/tests/debuginfo/function-arg-initialization.rs index 1a681c7721163..d9ce6ead5f2bf 100644 --- a/tests/debuginfo/function-arg-initialization.rs +++ b/tests/debuginfo/function-arg-initialization.rs @@ -26,9 +26,9 @@ // NON IMMEDIATE ARGS // gdb-command:print a -// gdbt-check:$4 = function_arg_initialization::BigStruct {a: 3, b: 4, c: 5, d: 6, e: 7, f: 8, g: 9, h: 10} +// gdb-check:$4 = function_arg_initialization::BigStruct {a: 3, b: 4, c: 5, d: 6, e: 7, f: 8, g: 9, h: 10} // gdb-command:print b -// gdbt-check:$5 = function_arg_initialization::BigStruct {a: 11, b: 12, c: 13, d: 14, e: 15, f: 16, g: 17, h: 18} +// gdb-check:$5 = function_arg_initialization::BigStruct {a: 11, b: 12, c: 13, d: 14, e: 15, f: 16, g: 17, h: 18} // gdb-command:continue // BINDING @@ -234,6 +234,9 @@ struct BigStruct { fn non_immediate_args(a: BigStruct, b: BigStruct) { zzz(); // #break + + // FIXME(#128973): Needed to avoid `` prints before #128973 has been fixed. + std::hint::black_box(|| { let _ = (a, b);}); } fn binding(a: i64, b: u64, c: f64) {