blob: 6bac417f54e56cd5bf1a07c7f913c4520bbcb60c [file] [log] [blame]
Michael Woerister4fb471a2013-06-25 19:55:021// 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 Anderson0b69bc92013-12-13 23:45:0811// xfail-android: FIXME(#10381)
12
Michael Woerister4fb471a2013-06-25 19:55:0213// compile-flags:-Z extra-debug-info
Michael Woerister93d63282013-09-06 14:00:0814// debugger:rbreak zzz
Michael Woerister4fb471a2013-06-25 19:55:0215// 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
31fn main() {
32
33 fun(111102, true);
34 nested(2000, 3000);
35
36 fn nested(a: i32, b: i64) -> (i32, i64) {
Michael Woeristerc9e51ce2013-07-18 10:04:3337 zzz();
Michael Woerister4fb471a2013-06-25 19:55:0238 (a, b)
39 }
40}
41
42fn fun(x: int, y: bool) -> (int, bool) {
43 zzz();
44
45 (x, y)
46}
47
Michael Woerister93d63282013-09-06 14:00:0848fn zzz() {()}