blob: 881e2547cfc68df64898ac4f68158bd94d0d92e1 [file] [log] [blame]
Michael Woerister02a0f282013-07-18 15:12:331// 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 Woerister02a0f282013-07-18 15:12:3311// compile-flags:-Z extra-debug-info
Michael Woerister93d63282013-09-06 14:00:0812// debugger:rbreak zzz
Michael Woerister02a0f282013-07-18 15:12:3313// 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 Tryzelaarad5c6762013-08-17 15:37:4229#[allow(unused_variable)];
30
Michael Woerister02a0f282013-07-18 15:12:3331fn function_one() {
32 let abc = 10101;
33 zzz();
34}
35
36fn function_two() {
37 let abc = 20202;
38 zzz();
39}
40
41
42fn function_three() {
43 let abc = 30303;
44 zzz();
45}
46
47
48fn main() {
49 function_one();
50 function_two();
51 function_three();
52}
53
54fn zzz() {()}