1
Fork 0

Add test case for #[thread_local] on extern statics

This commit is contained in:
Michael Neumann 2016-01-12 21:02:06 +01:00
parent d485a511d0
commit ca76cf120b
2 changed files with 12 additions and 0 deletions

View file

@ -0,0 +1,2 @@
#[thread_local]
pub static FOO: u32 = 3;

View file

@ -0,0 +1,10 @@
extern crate thread_local_extern_static;
extern {
#[thread_local]
static FOO: u32;
}
fn main() {
assert_eq!(FOO, 3);
}