]> git.proxmox.com Git - rustc.git/blob - tests/incremental/issue-49595/issue-49595.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / incremental / issue-49595 / issue-49595.rs
1 // revisions:cfail1 cfail2 cfail3
2 // compile-flags: -Z query-dep-graph --test
3 // build-pass
4
5 #![feature(rustc_attrs)]
6 #![crate_type = "rlib"]
7
8 #![rustc_partition_codegened(module="issue_49595-tests", cfg="cfail2")]
9 #![rustc_partition_codegened(module="issue_49595-lit_test", cfg="cfail3")]
10
11 mod tests {
12 #[cfg_attr(not(cfail1), test)]
13 fn test() {
14 }
15 }
16
17
18 // Checks that changing a string literal without changing its span
19 // takes effect.
20
21 // replacing a module to have a stable span
22 #[cfg_attr(not(cfail3), path = "auxiliary/lit_a.rs")]
23 #[cfg_attr(cfail3, path = "auxiliary/lit_b.rs")]
24 mod lit;
25
26 pub mod lit_test {
27 #[test]
28 fn lit_test() {
29 println!("{}", ::lit::A);
30 }
31 }