extend type alias test to include a clean rev
This commit is contained in:
parent
be1819f14b
commit
5dc6a058b2
@ -16,4 +16,8 @@
|
||||
#[cfg(rpass2)]
|
||||
pub type X = i32;
|
||||
|
||||
// this version doesn't actually change anything:
|
||||
#[cfg(rpass3)]
|
||||
pub type X = i32;
|
||||
|
||||
pub type Y = char;
|
||||
|
@ -9,19 +9,21 @@
|
||||
// except according to those terms.
|
||||
|
||||
// aux-build:a.rs
|
||||
// revisions:rpass1 rpass2
|
||||
// revisions:rpass1 rpass2 rpass3
|
||||
|
||||
#![feature(rustc_attrs)]
|
||||
|
||||
extern crate a;
|
||||
|
||||
#[rustc_dirty(label="TypeckItemBody", cfg="rpass2")]
|
||||
#[rustc_clean(label="TypeckItemBody", cfg="rpass3")]
|
||||
pub fn use_X() -> u32 {
|
||||
let x: a::X = 22;
|
||||
x as u32
|
||||
}
|
||||
|
||||
#[rustc_clean(label="TypeckItemBody", cfg="rpass2")]
|
||||
#[rustc_clean(label="TypeckItemBody", cfg="rpass3")]
|
||||
pub fn use_Y() {
|
||||
let x: a::Y = 'c';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user