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 | |
Michael Woerister | 02a0f28 | 2013-07-18 15:12:33 | [diff] [blame] | 11 | // compile-flags:-Z extra-debug-info |
Michael Woerister | 93d6328 | 2013-09-06 14:00:08 | [diff] [blame^] | 12 | // debugger:rbreak zzz |
Michael Woerister | 02a0f28 | 2013-07-18 15:12:33 | [diff] [blame] | 13 | // debugger:run |
| 14 | // debugger:finish |
| 15 | |
| 16 | // debugger:print abc |
| 17 | // check:$1 = 10101 |
| 18 | // debugger:continue |
| 19 | |
| 20 | // debugger:finish |
| 21 | // debugger:print abc |
| 22 | // check:$2 = 20202 |
| 23 | // debugger:continue |
| 24 | |
| 25 | // debugger:finish |
| 26 | // debugger:print abc |
| 27 | // check:$3 = 30303 |
| 28 | |
Erick Tryzelaar | ad5c676 | 2013-08-17 15:37:42 | [diff] [blame] | 29 | #[allow(unused_variable)]; |
| 30 | |
Michael Woerister | 02a0f28 | 2013-07-18 15:12:33 | [diff] [blame] | 31 | fn function_one() { |
| 32 | let abc = 10101; |
| 33 | zzz(); |
| 34 | } |
| 35 | |
| 36 | fn function_two() { |
| 37 | let abc = 20202; |
| 38 | zzz(); |
| 39 | } |
| 40 | |
| 41 | |
| 42 | fn function_three() { |
| 43 | let abc = 30303; |
| 44 | zzz(); |
| 45 | } |
| 46 | |
| 47 | |
| 48 | fn main() { |
| 49 | function_one(); |
| 50 | function_two(); |
| 51 | function_three(); |
| 52 | } |
| 53 | |
| 54 | fn zzz() {()} |