diff options
Diffstat (limited to 'tests/incremental/change_crate_order')
-rw-r--r-- | tests/incremental/change_crate_order/auxiliary/a.rs | 3 | ||||
-rw-r--r-- | tests/incremental/change_crate_order/auxiliary/b.rs | 3 | ||||
-rw-r--r-- | tests/incremental/change_crate_order/main.rs | 24 |
3 files changed, 30 insertions, 0 deletions
diff --git a/tests/incremental/change_crate_order/auxiliary/a.rs b/tests/incremental/change_crate_order/auxiliary/a.rs new file mode 100644 index 000000000..1bd48714a --- /dev/null +++ b/tests/incremental/change_crate_order/auxiliary/a.rs @@ -0,0 +1,3 @@ +#![crate_type="rlib"] + +pub static A : u32 = 32; diff --git a/tests/incremental/change_crate_order/auxiliary/b.rs b/tests/incremental/change_crate_order/auxiliary/b.rs new file mode 100644 index 000000000..001b88912 --- /dev/null +++ b/tests/incremental/change_crate_order/auxiliary/b.rs @@ -0,0 +1,3 @@ +#![crate_type="rlib"] + +pub static B: u32 = 32; diff --git a/tests/incremental/change_crate_order/main.rs b/tests/incremental/change_crate_order/main.rs new file mode 100644 index 000000000..7448b54dd --- /dev/null +++ b/tests/incremental/change_crate_order/main.rs @@ -0,0 +1,24 @@ +// aux-build:a.rs +// aux-build:b.rs +// revisions:rpass1 rpass2 + +#![feature(rustc_attrs)] + + +#[cfg(rpass1)] +extern crate a; +#[cfg(rpass1)] +extern crate b; + +#[cfg(rpass2)] +extern crate b; +#[cfg(rpass2)] +extern crate a; + +use a::A; +use b::B; + +//? #[rustc_clean(label="typeck", cfg="rpass2")] +pub fn main() { + A + B; +} |