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
31 // gdb-command:print x
32 // gdb-check:$5 = -2.5
33 // gdb-command:print y
35 // gdb-command:continue
37 // gdb-command:print x
38 // gdb-check:$7 = -2.5
39 // gdb-command:print y
41 // gdb-command:continue
44 // === LLDB TESTS ==================================================================================
48 // lldb-command:print x
49 // lldb-check:[...]$0 = -1
50 // lldb-command:print y
51 // lldb-check:[...]$1 = 1
52 // lldb-command:continue
54 // lldb-command:print x
55 // lldb-check:[...]$2 = -1
56 // lldb-command:print y
57 // lldb-check:[...]$3 = 2.5
58 // lldb-command:continue
60 // lldb-command:print x
61 // lldb-check:[...]$4 = -2.5
62 // lldb-command:print y
63 // lldb-check:[...]$5 = 1
64 // lldb-command:continue
66 // lldb-command:print x
67 // lldb-check:[...]$6 = -2.5
68 // lldb-command:print y
69 // lldb-check:[...]$7 = 2.5
70 // lldb-command:continue
73 #![feature(omit_gdb_pretty_printer_section)]
74 #![omit_gdb_pretty_printer_section]
76 fn outer<TA: Clone>(a: TA) {
78 inner(a.clone(), 2.5f64);
80 fn inner<TX, TY>(x: TX, y: TY) {