blob: e6b16adc3862bea840fb99109006c65cd2daae16 [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
Young-il Choica553172013-11-09 07:16:4411// xfail-android: FIXME(#10381)
sh8281.kim4e548282013-11-04 06:53:0112
Alex Crichton071ee962014-02-07 03:57:0913// compile-flags:-g
Michael Woerister93d63282013-09-06 14:00:0814// debugger:rbreak zzz
Michael Woerister02a0f282013-07-18 15:12:3315// 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 Tryzelaarad5c6762013-08-17 15:37:4231#[allow(unused_variable)];
32
Michael Woerister02a0f282013-07-18 15:12:3333fn function_one() {
Derek Guenther730bdb62014-02-05 22:33:1034 let abc = 10101;
35 zzz();
Michael Woerister02a0f282013-07-18 15:12:3336}
37
38fn function_two() {
Derek Guenther730bdb62014-02-05 22:33:1039 let abc = 20202;
40 zzz();
Michael Woerister02a0f282013-07-18 15:12:3341}
42
43
44fn function_three() {
Derek Guenther730bdb62014-02-05 22:33:1045 let abc = 30303;
46 zzz();
Michael Woerister02a0f282013-07-18 15:12:3347}
48
49
50fn main() {
Derek Guenther730bdb62014-02-05 22:33:1051 function_one();
52 function_two();
53 function_three();
Michael Woerister02a0f282013-07-18 15:12:3354}
55
56fn zzz() {()}