]>
git.proxmox.com Git - rustc.git/blob - src/test/debuginfo/static-method-on-struct-and-enum.rs
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 ===================================================================================
20 // gdb-command:print arg1
22 // gdb-command:print arg2
24 // gdb-command:continue
27 // gdb-command:print arg1
29 // gdb-command:print arg2
31 // gdb-command:print arg3
33 // gdb-command:continue
36 // === LLDB TESTS ==================================================================================
41 // lldb-command:print arg1
42 // lldb-check:[...]$0 = 1
43 // lldb-command:print arg2
44 // lldb-check:[...]$1 = 2
45 // lldb-command:continue
48 // lldb-command:print arg1
49 // lldb-check:[...]$2 = -3
50 // lldb-command:print arg2
51 // lldb-check:[...]$3 = 4.5
52 // lldb-command:print arg3
53 // lldb-check:[...]$4 = 5
54 // lldb-command:continue
56 #![omit_gdb_pretty_printer_section]
64 fn static_method(arg1
: int
, arg2
: int
) -> int
{
73 Variant3(f64, int
, char),
78 fn static_method(arg1
: int
, arg2
: f64, arg3
: uint
) -> int
{
85 Struct
::static_method(1, 2);
86 Enum
::static_method(-3, 4.5, 5);