about summary refs log tree commit diff
path: root/tests/run-make/proc-macro-init-order/rmake.rs
blob: 3c3fc813381c52dc13094ad8347ba0e50c7a4094 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// a.rs is a procedural macro crate, on which b.rs and c.rs depend. A now
// patched bug caused a compilation failure if the proc-macro crate was
// initialized with its dependents in this exact order. This test checks
// that compilation succeeds even when initialization is done in this order.
// See https://github.com/rust-lang/rust/issues/37893

//@ ignore-cross-compile

use run_make_support::rustc;

fn main() {
    rustc().input("a.rs").run();
    rustc().input("b.rs").run();
    rustc().input("c.rs").run();
}