]> git.proxmox.com Git - rustc.git/blame - src/test/incremental/ich_nested_items.rs
New upstream version 1.54.0+dfsg1
[rustc.git] / src / test / incremental / ich_nested_items.rs
CommitLineData
5bcae85e
SL
1// Check that the hash of `foo` doesn't change just because we ordered
2// the nested items (or even added new ones).
3
abe05a73 4// revisions: cfail1 cfail2
416331ca 5// build-pass (FIXME(62277): could be check-pass?)
cdc7bbd5 6// compile-flags: -Z query-dep-graph
5bcae85e 7
abe05a73 8#![crate_type = "rlib"]
5bcae85e
SL
9#![feature(rustc_attrs)]
10
17df50a5 11#[rustc_clean(except = "hir_owner_nodes", cfg = "cfail2")]
abe05a73 12pub fn foo() {
ff7c6d11 13 #[cfg(cfail1)]
ba9703b0 14 pub fn baz() {} // order is different...
5bcae85e 15
17df50a5 16 #[rustc_clean(cfg = "cfail2")]
ba9703b0 17 pub fn bar() {} // but that doesn't matter.
5bcae85e 18
ff7c6d11 19 #[cfg(cfail2)]
ba9703b0 20 pub fn baz() {} // order is different...
ff7c6d11 21
ba9703b0 22 pub fn bap() {} // neither does adding a new item
5bcae85e 23}