1 // Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
11 // min-lldb-version: 310
15 // === GDB TESTS ===================================================================================
19 // gdb-command:print x
21 // gdb-command:print y
23 // gdb-command:continue
25 // gdb-command:print *x
27 // gdb-command:print *y
29 // gdb-command:continue
32 // === LLDB TESTS ==================================================================================
36 // lldb-command:print x
37 // lldb-check:[...]$0 = 0.5
38 // lldb-command:print y
39 // lldb-check:[...]$1 = 10
40 // lldb-command:continue
42 // lldb-command:print *x
43 // lldb-check:[...]$2 = 29
44 // lldb-command:print *y
45 // lldb-check:[...]$3 = 110
46 // lldb-command:continue
48 #![feature(box_syntax)]
49 #![feature(omit_gdb_pretty_printer_section)]
50 #![omit_gdb_pretty_printer_section]
52 fn some_generic_fun<T1, T2>(a: T1, b: T2) -> (T2, T1) {
54 let closure = |x, y| {
63 some_generic_fun(0.5f64, 10);
64 some_generic_fun(&29, Box::new(110));