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