1 // A variant of the first "spike" test that serves to test the
2 // `rustc_partition_reused` and `rustc_partition_codegened` tests.
3 // Here we change and say that the `x` module will be reused (when in
4 // fact it will not), and then indicate that the test itself
5 // should-fail (because an error will be reported, and hence the
6 // revision rpass2 will not compile, despite being named rpass).
8 // revisions:rpass1 rpass2
11 #![feature(rustc_attrs)]
13 #![rustc_partition_reused(module="spike_neg1", cfg="rpass2")]
14 #![rustc_partition_reused(module="spike_neg1-x", cfg="rpass2")] // this is wrong!
15 #![rustc_partition_reused(module="spike_neg1-y", cfg="rpass2")]
36 pub fn sum(x: &X) -> u32 {
44 pub fn assert_sum() -> bool {