1 // Check that the hash of `foo` doesn't change just because we ordered
2 // the nested items (or even added new ones).
4 // revisions: cfail1 cfail2
5 // build-pass (FIXME(62277): could be check-pass?)
7 #![crate_type = "rlib"]
8 #![feature(rustc_attrs)]
10 #[rustc_clean(label="Hir", cfg="cfail2")]
11 #[rustc_dirty(label="HirBody", cfg="cfail2")]
14 pub fn baz() { } // order is different...
16 #[rustc_clean(label="Hir", cfg="cfail2")]
17 #[rustc_clean(label="HirBody", cfg="cfail2")]
18 pub fn bar() { } // but that doesn't matter.
21 pub fn baz() { } // order is different...
23 pub fn bap() { } // neither does adding a new item