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.
4+ //
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.
10+
11+ // ignore-android: FIXME(#10381)
12+
13+ // compile-flags:-g1
14+
15+ // Make sure functions have proper names
16+ // debugger:info functions
17+ // check:static void limited-debuginfo::main();
18+ // check:static void limited-debuginfo::some_function();
19+ // check:static void limited-debuginfo::some_other_function();
20+ // check:static void limited-debuginfo::zzz();
21+
22+ // debugger:rbreak zzz
23+ // debugger:run
24+
25+ // Make sure there is no information about locals
26+ // debugger:finish
27+ // debugger:info locals
28+ // check:No locals.
29+ // debugger:continue
30+
31+
32+ #[ allow( unused_variable) ] ;
33+
34+ struct Struct {
35+ a : i64 ,
36+ b : i32
37+ }
38+
39+ fn main ( ) {
40+ some_function ( 101 , 202 ) ;
41+ }
42+
43+
44+ fn zzz ( ) { ( ) }
45+
46+ fn some_function ( a : int , b : int ) {
47+ let some_variable = Struct { a : 11 , b : 22 } ;
48+ let some_other_variable = 23 ;
49+ zzz ( ) ;
50+ }
51+
52+ fn some_other_function ( a : int , b : int ) -> bool { true }
0 commit comments