]> git.lizzy.rs Git - rust.git/commitdiff
Converted test to rpass.
authorVadim Chugunov <vadimcn@gmail.com>
Sat, 26 Sep 2015 01:48:54 +0000 (18:48 -0700)
committerVadim Chugunov <vadimcn@gmail.com>
Sat, 26 Sep 2015 01:48:54 +0000 (18:48 -0700)
src/test/auxiliary/msvc-data-only-lib.rs [new file with mode: 0644]
src/test/run-make/msvc-data-only/Makefile [deleted file]
src/test/run-make/msvc-data-only/bar.rs [deleted file]
src/test/run-make/msvc-data-only/foo.rs [deleted file]
src/test/run-pass/msvc-data-only.rs [new file with mode: 0644]

diff --git a/src/test/auxiliary/msvc-data-only-lib.rs b/src/test/auxiliary/msvc-data-only-lib.rs
new file mode 100644 (file)
index 0000000..71fb9a5
--- /dev/null
@@ -0,0 +1,15 @@
+// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// 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;
diff --git a/src/test/run-make/msvc-data-only/Makefile b/src/test/run-make/msvc-data-only/Makefile
deleted file mode 100644 (file)
index 251a3a9..0000000
+++ /dev/null
@@ -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
diff --git a/src/test/run-make/msvc-data-only/bar.rs b/src/test/run-make/msvc-data-only/bar.rs
deleted file mode 100644 (file)
index 0e3af9f..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
-extern crate foo;
-
-fn main() {
-    println!("The answer is {} !", foo::FOO);
-}
diff --git a/src/test/run-make/msvc-data-only/foo.rs b/src/test/run-make/msvc-data-only/foo.rs
deleted file mode 100644 (file)
index 38bff8b..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
-// file at the top-level directory of this distribution and at
-// http://rust-lang.org/COPYRIGHT.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
-// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
-// option. This file may not be copied, modified, or distributed
-// except according to those terms.
-
-#![crate_type = "rlib"]
-
-pub static FOO: i32 = 42;
diff --git a/src/test/run-pass/msvc-data-only.rs b/src/test/run-pass/msvc-data-only.rs
new file mode 100644 (file)
index 0000000..ad6888c
--- /dev/null
@@ -0,0 +1,17 @@
+// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+// aux-build:msvc-data-only-lib.rs
+
+extern crate msvc_data_only_lib;
+
+fn main() {
+    println!("The answer is {} !", msvc_data_only_lib::FOO);
+}