Skip to content

Commit ca76cf1

Browse files
committed
Add test case for #[thread_local] on extern statics
1 parent d485a51 commit ca76cf1

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#[thread_local]
2+
pub static FOO: u32 = 3;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
extern crate thread_local_extern_static;
2+
3+
extern {
4+
#[thread_local]
5+
static FOO: u32;
6+
}
7+
8+
fn main() {
9+
assert_eq!(FOO, 3);
10+
}

0 commit comments

Comments
 (0)