Michael Woerister | 02a0f28 | 2013-07-18 15:12:33 | [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 | |
Young-il Choi | ca55317 | 2013-11-09 07:16:44 | [diff] [blame] | 11 | // xfail-android: FIXME(#10381) |
sh8281.kim | 4e54828 | 2013-11-04 06:53:01 | [diff] [blame] | 12 | |
Alex Crichton | 071ee96 | 2014-02-07 03:57:09 | [diff] [blame^] | 13 | // compile-flags:-g |
Michael Woerister | 93d6328 | 2013-09-06 14:00:08 | [diff] [blame] | 14 | // debugger:rbreak zzz |
Michael Woerister | 02a0f28 | 2013-07-18 15:12:33 | [diff] [blame] | 15 | // debugger:run |
| 16 | // debugger:finish |
| 17 | |
| 18 | // debugger:print abc |
| 19 | // check:$1 = 10101 |
| 20 | // debugger:continue |
| 21 | |
| 22 | // debugger:finish |
| 23 | // debugger:print abc |
| 24 | // check:$2 = 20202 |
| 25 | // debugger:continue |
| 26 | |
| 27 | // debugger:finish |
| 28 | // debugger:print abc |
| 29 | // check:$3 = 30303 |
| 30 | |
Erick Tryzelaar | ad5c676 | 2013-08-17 15:37:42 | [diff] [blame] | 31 | #[allow(unused_variable)]; |
| 32 | |
Michael Woerister | 02a0f28 | 2013-07-18 15:12:33 | [diff] [blame] | 33 | fn function_one() { |
Derek Guenther | 730bdb6 | 2014-02-05 22:33:10 | [diff] [blame] | 34 | let abc = 10101; |
| 35 | zzz(); |
Michael Woerister | 02a0f28 | 2013-07-18 15:12:33 | [diff] [blame] | 36 | } |
| 37 | |
| 38 | fn function_two() { |
Derek Guenther | 730bdb6 | 2014-02-05 22:33:10 | [diff] [blame] | 39 | let abc = 20202; |
| 40 | zzz(); |
Michael Woerister | 02a0f28 | 2013-07-18 15:12:33 | [diff] [blame] | 41 | } |
| 42 | |
| 43 | |
| 44 | fn function_three() { |
Derek Guenther | 730bdb6 | 2014-02-05 22:33:10 | [diff] [blame] | 45 | let abc = 30303; |
| 46 | zzz(); |
Michael Woerister | 02a0f28 | 2013-07-18 15:12:33 | [diff] [blame] | 47 | } |
| 48 | |
| 49 | |
| 50 | fn main() { |
Derek Guenther | 730bdb6 | 2014-02-05 22:33:10 | [diff] [blame] | 51 | function_one(); |
| 52 | function_two(); |
| 53 | function_three(); |
Michael Woerister | 02a0f28 | 2013-07-18 15:12:33 | [diff] [blame] | 54 | } |
| 55 | |
| 56 | fn zzz() {()} |