about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorMichael Neumann <mneumann@ntecs.de>2016-02-20 13:38:30 +0100
committerMichael Neumann <mneumann@ntecs.de>2016-02-20 13:38:30 +0100
commitc2c58a398d63fa5ee3c521851f769ec6cd4fdaa4 (patch)
tree1704126510885d08c6e9891c921dd8314ce51c49 /src/test
parent91648e283e11874b1daa999ebdc2906f9f249029 (diff)
downloadrust-c2c58a398d63fa5ee3c521851f769ec6cd4fdaa4.tar.gz
rust-c2c58a398d63fa5ee3c521851f769ec6cd4fdaa4.zip
Fix test case. Needs no_mangle and aux-build
Diffstat (limited to 'src/test')
-rw-r--r--src/test/auxiliary/thread-local-extern-static.rs2
-rw-r--r--src/test/run-pass/thread-local-extern-static.rs2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/test/auxiliary/thread-local-extern-static.rs b/src/test/auxiliary/thread-local-extern-static.rs
index b7cff0f262e..e15546db970 100644
--- a/src/test/auxiliary/thread-local-extern-static.rs
+++ b/src/test/auxiliary/thread-local-extern-static.rs
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 #![feature(thread_local)]
+#![crate_type = "lib"]
 
+#[no_mangle]
 #[thread_local]
 pub static FOO: u32 = 3;
diff --git a/src/test/run-pass/thread-local-extern-static.rs b/src/test/run-pass/thread-local-extern-static.rs
index cbc756202e8..5b5c35382e9 100644
--- a/src/test/run-pass/thread-local-extern-static.rs
+++ b/src/test/run-pass/thread-local-extern-static.rs
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// aux-build:thread-local-extern-static.rs
+
 #![feature(thread_local)]
 
 extern crate thread_local_extern_static;