extend type alias test to include a clean rev

This commit is contained in:
Niko Matsakis 2016-05-24 15:59:07 -04:00
parent be1819f14b
commit 5dc6a058b2
2 changed files with 7 additions and 1 deletions

View File

@ -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;

View File

@ -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';
}