1 // min-lldb-version: 310
5 // === GDB TESTS ===================================================================================
8 // gdb-command:printf "s = \"%s\"\n", s
9 // gdb-check:s = "abcd"
10 // gdb-command:print len
12 // gdb-command:print local0
14 // gdb-command:print local1
15 // gdb-check:$3 = true
16 // gdb-command:print local2
17 // gdb-check:$4 = 20.5
19 // gdb-command:continue
21 // === LLDB TESTS ==================================================================================
24 // lldb-command:print len
25 // lldbg-check:[...]$0 = 20
26 // lldbr-check:(i32) len = 20
27 // lldb-command:print local0
28 // lldbg-check:[...]$1 = 19
29 // lldbr-check:(i32) local0 = 19
30 // lldb-command:print local1
31 // lldbg-check:[...]$2 = true
32 // lldbr-check:(bool) local1 = true
33 // lldb-command:print local2
34 // lldbg-check:[...]$3 = 20.5
35 // lldbr-check:(f64) local2 = 20.5
37 // lldb-command:continue
39 #![allow(unused_variables)]
41 #![feature(omit_gdb_pretty_printer_section)]
42 #![omit_gdb_pretty_printer_section]
46 pub unsafe extern "C" fn fn_with_c_abi(s: *const u8, len: i32) -> i32 {
49 let local2 = (len as f64) + 0.5;
58 fn_with_c_abi(b"abcd\0".as_ptr(), 20);