Michael Woerister | 4fb471a | 2013-06-25 19:55:02 | [diff] [blame] | 1 | // Copyright 2013 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 | |
Brian Anderson | 0b69bc9 | 2013-12-13 23:45:08 | [diff] [blame^] | 11 | // xfail-android: FIXME(#10381) |
| 12 | |
Michael Woerister | 4fb471a | 2013-06-25 19:55:02 | [diff] [blame] | 13 | // compile-flags:-Z extra-debug-info |
Michael Woerister | 93d6328 | 2013-09-06 14:00:08 | [diff] [blame] | 14 | // debugger:rbreak zzz |
Michael Woerister | 4fb471a | 2013-06-25 19:55:02 | [diff] [blame] | 15 | // debugger:run |
| 16 | // debugger:finish |
| 17 | |
| 18 | // debugger:print x |
| 19 | // check:$1 = 111102 |
| 20 | // debugger:print y |
| 21 | // check:$2 = true |
| 22 | |
| 23 | // debugger:continue |
| 24 | // debugger:finish |
| 25 | |
| 26 | // debugger:print a |
| 27 | // check:$3 = 2000 |
| 28 | // debugger:print b |
| 29 | // check:$4 = 3000 |
| 30 | |
| 31 | fn main() { |
| 32 | |
| 33 | fun(111102, true); |
| 34 | nested(2000, 3000); |
| 35 | |
| 36 | fn nested(a: i32, b: i64) -> (i32, i64) { |
Michael Woerister | c9e51ce | 2013-07-18 10:04:33 | [diff] [blame] | 37 | zzz(); |
Michael Woerister | 4fb471a | 2013-06-25 19:55:02 | [diff] [blame] | 38 | (a, b) |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | fn fun(x: int, y: bool) -> (int, bool) { |
| 43 | zzz(); |
| 44 | |
| 45 | (x, y) |
| 46 | } |
| 47 | |
Michael Woerister | 93d6328 | 2013-09-06 14:00:08 | [diff] [blame] | 48 | fn zzz() {()} |