2013-02-09 13:09:19 -05:00
|
|
|
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
|
|
|
|
// file at the top-level directory of this distribution and at
|
|
|
|
// http://rust-lang.org/COPYRIGHT.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
|
|
// option. This file may not be copied, modified, or distributed
|
|
|
|
// except according to those terms.
|
|
|
|
|
2013-02-27 13:35:56 -05:00
|
|
|
// compile-flags:-Z extra-debug-info
|
2013-02-28 14:42:26 -05:00
|
|
|
// debugger:set print pretty off
|
|
|
|
// debugger:break 29
|
2013-02-09 13:09:19 -05:00
|
|
|
// debugger:run
|
2013-02-28 14:42:26 -05:00
|
|
|
// debugger:print pair
|
|
|
|
// check:$1 = {x = 1, y = 2}
|
2013-02-09 13:09:19 -05:00
|
|
|
// debugger:print pair.x
|
2013-02-28 14:42:26 -05:00
|
|
|
// check:$2 = 1
|
2013-02-09 13:09:19 -05:00
|
|
|
// debugger:print pair.y
|
2013-02-28 14:42:26 -05:00
|
|
|
// check:$3 = 2
|
2013-02-09 13:09:19 -05:00
|
|
|
|
|
|
|
struct Pair {
|
|
|
|
x: int,
|
|
|
|
y: int
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let pair = Pair { x: 1, y: 2 };
|
2013-02-27 13:35:56 -05:00
|
|
|
let _z = ();
|
2013-02-09 13:09:19 -05:00
|
|
|
}
|