1 // Test that we are able to reuse `main` despite the changes in the implementation of `foo` and
4 // revisions: rpass1 rpass2
6 // compile-flags: -Zquery-dep-graph
8 #![feature(rustc_attrs)]
10 #![rustc_partition_reused(module = "main", cfg = "rpass2")]
15 let vec: Vec<u8> = vec![0, 1, 2, 3];
17 println!("{}", a::foo(b));
18 println!("{}", a::bar(b));