about summary refs log tree commit diff
path: root/tests/run-make/mingw-export-call-convention/rmake.rs
blob: d1fb745a64de989be5c2cc9071d95bd78c4ce7c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// On windows-gnu, symbol exporting used to fail to export names
// with no_mangle. #72049 brought this feature up to par with msvc,
// and this test checks that the symbol "bar" is successfully exported.
// See https://github.com/rust-lang/rust/issues/50176

//@ only-x86_64-pc-windows-gnu

use run_make_support::{llvm_readobj, rustc};

fn main() {
    rustc().input("foo.rs").run();
    llvm_readobj().arg("--all").input("libfoo.dll.a").run().assert_stdout_contains("bar");
}