Converted test to rpass.

This commit is contained in:
Vadim Chugunov 2015-09-25 18:48:54 -07:00 committed by Alex Crichton
parent 77a5714724
commit bb8f8622e4
3 changed files with 6 additions and 10 deletions

View file

@ -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;

View file

@ -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

View file

@ -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);
}