]> git.lizzy.rs Git - rust.git/blob - src/test/incremental/remapped_paths_cc/main.rs
58fb8bc3c889f4f4f6550ff93bbad4288891ff80
[rust.git] / src / test / incremental / remapped_paths_cc / main.rs
1 // Copyright 2017 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 // revisions:rpass1 rpass2 rpass3
12 // compile-flags: -Z query-dep-graph -g -Zincremental-cc
13 // aux-build:extern_crate.rs
14 // ignore-test FIXME(#42293) this regressed in #44142 but should get fixed with red/green
15
16
17 // This test case makes sure that we detect if paths emitted into debuginfo
18 // are changed, even when the change happens in an external crate.
19
20 #![feature(rustc_attrs)]
21
22 #![rustc_partition_reused(module="main", cfg="rpass2")]
23 #![rustc_partition_reused(module="main-some_mod", cfg="rpass2")]
24 #![rustc_partition_reused(module="main", cfg="rpass3")]
25 #![rustc_partition_translated(module="main-some_mod", cfg="rpass3")]
26
27 extern crate extern_crate;
28
29 fn main() {
30     some_mod::some_fn();
31 }
32
33 mod some_mod {
34     use extern_crate;
35
36     pub fn some_fn() {
37         extern_crate::inline_fn();
38     }
39 }