2016-03-28 21:49:02 +00:00
|
|
|
// revisions: rpass1 rpass2
|
2016-08-06 00:14:47 +00:00
|
|
|
// compile-flags: -Z query-dep-graph
|
2016-03-28 21:49:02 +00:00
|
|
|
|
|
|
|
#![allow(warnings)]
|
|
|
|
#![feature(rustc_attrs)]
|
|
|
|
|
|
|
|
fn main() { }
|
|
|
|
|
|
|
|
mod x {
|
|
|
|
#[cfg(rpass1)]
|
2016-11-20 12:22:44 +00:00
|
|
|
pub fn xxxx() -> i32 {
|
2016-03-28 21:49:02 +00:00
|
|
|
1
|
|
|
|
}
|
|
|
|
|
|
|
|
#[cfg(rpass2)]
|
2016-11-20 12:22:44 +00:00
|
|
|
pub fn xxxx() -> i32 {
|
2016-03-28 21:49:02 +00:00
|
|
|
2
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mod y {
|
|
|
|
use x;
|
|
|
|
|
2021-05-15 11:20:42 +00:00
|
|
|
#[rustc_clean(cfg="rpass2")]
|
2016-11-20 12:22:44 +00:00
|
|
|
pub fn yyyy() {
|
|
|
|
x::xxxx();
|
2016-03-28 21:49:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mod z {
|
|
|
|
use y;
|
|
|
|
|
2021-05-15 11:20:42 +00:00
|
|
|
#[rustc_clean(cfg="rpass2")]
|
2016-03-28 21:49:02 +00:00
|
|
|
pub fn z() {
|
2016-11-20 12:22:44 +00:00
|
|
|
y::yyyy();
|
2016-03-28 21:49:02 +00:00
|
|
|
}
|
|
|
|
}
|