1 // min-lldb-version: 310
5 // === GDB TESTS ===================================================================================
9 // gdbg-check:$1 = [...]"abcd"
10 // gdbr-check:$1 = [...]"abcd\000"
11 // gdb-command:print len
13 // gdb-command:print local0
15 // gdb-command:print local1
16 // gdb-check:$4 = true
17 // gdb-command:print local2
18 // gdb-check:$5 = 20.5
20 // gdb-command:continue
22 // === LLDB TESTS ==================================================================================
25 // lldb-command:print len
26 // lldbg-check:[...]$0 = 20
27 // lldbr-check:(i32) len = 20
28 // lldb-command:print local0
29 // lldbg-check:[...]$1 = 19
30 // lldbr-check:(i32) local0 = 19
31 // lldb-command:print local1
32 // lldbg-check:[...]$2 = true
33 // lldbr-check:(bool) local1 = true
34 // lldb-command:print local2
35 // lldbg-check:[...]$3 = 20.5
36 // lldbr-check:(f64) local2 = 20.5
38 // lldb-command:continue
40 #![allow(unused_variables)]
42 #![feature(omit_gdb_pretty_printer_section)]
43 #![omit_gdb_pretty_printer_section]
47 pub unsafe extern "C" fn fn_with_c_abi(s: *const u8, len: i32) -> i32 {
50 let local2 = (len as f64) + 0.5;
59 fn_with_c_abi(b"abcd\0".as_ptr(), 20);