]>
git.proxmox.com Git - rustc.git/blob - src/test/incremental/spike-neg2.rs
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 `y` module will be codegened (when
4 // in 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_neg2", cfg="rpass2")]
14 #![rustc_partition_codegened(module="spike_neg2-x", cfg="rpass2")]
15 #![rustc_partition_codegened(module="spike_neg2-y", cfg="rpass2")] // this is wrong!
36 pub fn sum(x
: &X
) -> u32 {
44 pub fn assert_sum() -> bool
{