1 // This test does not passed with gdb < 8.0. See #53497.
2 // min-gdb-version: 10.1
6 // === GDB TESTS ===================================================================================
10 // gdb-command:print fun(45, true)
11 // gdb-check:$1 = true
12 // gdb-command:print fun(444, false)
13 // gdb-check:$2 = false
15 // gdb-command:print r.get_x()
18 #![allow(dead_code, unused_variables)]
20 struct RegularStruct {
25 fn get_x(&self) -> i32 {
32 let r = RegularStruct{x: 4};
38 fn fun(x: isize, y: bool) -> bool {