Converted test to rpass.
This commit is contained in:
parent
77a5714724
commit
bb8f8622e4
3 changed files with 6 additions and 10 deletions
|
|
@ -8,6 +8,8 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// no-prefer-dynamic
|
||||
|
||||
#![crate_type = "rlib"]
|
||||
|
||||
pub static FOO: i32 = 42;
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
# Test that on *-pc-windows-msvc we can link to a rlib containing only data.
|
||||
# See #26591, #27438
|
||||
|
||||
-include ../tools.mk
|
||||
|
||||
all:
|
||||
$(RUSTC) foo.rs
|
||||
$(RUSTC) bar.rs
|
||||
|
|
@ -8,8 +8,10 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
extern crate foo;
|
||||
// aux-build:msvc-data-only-lib.rs
|
||||
|
||||
extern crate msvc_data_only_lib;
|
||||
|
||||
fn main() {
|
||||
println!("The answer is {} !", foo::FOO);
|
||||
println!("The answer is {} !", msvc_data_only_lib::FOO);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue