3 // === GDB TESTS ==================================================================================
6 // gdb-command:info locals
9 // gdb-command:continue
10 // gdb-command:info locals
14 // gdb-command:continue
15 // gdb-command:info locals
21 // gdb-command:continue
22 // gdb-command:info locals
30 // === LLDB TESTS =================================================================================
33 // lldb-command:frame variable
34 // lldb-check:(int) a = 123
36 // lldb-command:continue
37 // lldb-command:frame variable
38 // lldb-check:(int) a = 123 (int) x = 42
40 // lldb-command:continue
41 // lldb-command:frame variable
42 // lldb-check:(int) a = 123 (int) x = 42 (int) b = 456 (bool) y = true
44 // lldb-command:continue
45 // lldb-command:frame variable
46 // lldb-check:(int) a = 123 (int) x = 42 (int) b = 456 (bool) y = true (int) c = 789 (int) z = 10
48 // === CDB TESTS ==================================================================================
52 // cdb-check:[...]a = 0n123
56 // cdb-check:[...]a = 0n123
57 // cdb-check:[...]x = 0n42
61 // cdb-check:[...]y = true
62 // cdb-check:[...]b = 0n456
63 // cdb-check:[...]a = 0n123
64 // cdb-check:[...]x = 0n42
68 // cdb-check:[...]z = 0n10
69 // cdb-check:[...]c = 0n789
70 // cdb-check:[...]y = true
71 // cdb-check:[...]b = 0n456
72 // cdb-check:[...]a = 0n123
73 // cdb-check:[...]x = 0n42
80 if let Some(x) = id(Some(42)) {
85 if let Ok(y) = id::<Result<bool, ()>>(Ok(true)) {
90 if let (z, 42) = id((10, 42)) {
98 fn id<T>(value: T) -> T { value }