mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
14 lines
478 B
Rust
14 lines
478 B
Rust
// 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");
|
|
}
|