2013-07-02 10:33:51 +02: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-11-09 16:16:44 +09:00
|
|
|
// xfail-android: FIXME(#10381)
|
2013-11-04 15:53:01 +09:00
|
|
|
|
2013-07-02 10:33:51 +02:00
|
|
|
// compile-flags:-Z extra-debug-info
|
2013-09-06 16:00:08 +02:00
|
|
|
// debugger:rbreak zzz
|
2013-07-02 10:33:51 +02:00
|
|
|
// debugger:run
|
|
|
|
// debugger:finish
|
|
|
|
|
|
|
|
// debugger:print *the_a_ref
|
|
|
|
// check:$1 = TheA
|
|
|
|
|
|
|
|
// debugger:print *the_b_ref
|
|
|
|
// check:$2 = TheB
|
|
|
|
|
|
|
|
// debugger:print *the_c_ref
|
|
|
|
// check:$3 = TheC
|
|
|
|
|
2013-08-17 08:37:42 -07:00
|
|
|
#[allow(unused_variable)];
|
|
|
|
|
2013-07-02 10:33:51 +02:00
|
|
|
enum ABC { TheA, TheB, TheC }
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let the_a = TheA;
|
2013-07-16 12:17:55 +02:00
|
|
|
let the_a_ref: &ABC = &the_a;
|
2013-07-02 10:33:51 +02:00
|
|
|
|
|
|
|
let the_b = TheB;
|
2013-07-16 12:17:55 +02:00
|
|
|
let the_b_ref: &ABC = &the_b;
|
2013-07-02 10:33:51 +02:00
|
|
|
|
|
|
|
let the_c = TheC;
|
2013-07-16 12:17:55 +02:00
|
|
|
let the_c_ref: &ABC = &the_c;
|
2013-07-02 10:33:51 +02:00
|
|
|
|
|
|
|
zzz();
|
|
|
|
}
|
|
|
|
|
2013-08-17 08:37:42 -07:00
|
|
|
fn zzz() {()}
|