about summary refs log tree commit diff
path: root/tests/run-make/arm64ec-import-export-static/rmake.rs
blob: 7fa31144810dffb5b7866591d7f1fdfb62a567bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Test that a static can be exported from one crate and imported into another.
//
// This was broken for Arm64EC as only functions, not variables, should be
// decorated with `#`.
// See https://github.com/rust-lang/rust/issues/138541

//@ needs-llvm-components: aarch64
//@ only-windows

use run_make_support::rustc;

fn main() {
    rustc().input("export.rs").target("aarch64-pc-windows-msvc").panic("abort").run();
    rustc().input("import.rs").target("aarch64-pc-windows-msvc").panic("abort").run();
}