about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-02-04 20:52:22 +0000
committerbors <bors@rust-lang.org>2016-02-04 20:52:22 +0000
commitc007e4a010e30db1c92bb3cd5157ffa8282dbbd6 (patch)
treec53645be61e98209da45e3ec52d923c269f5f8d4 /src/test
parentd0ef74026690cffccb543fc274d73a078eba797d (diff)
parent4b68c293fdf64749975adfa0c70c8b3eda649bad (diff)
downloadrust-c007e4a010e30db1c92bb3cd5157ffa8282dbbd6.tar.gz
rust-c007e4a010e30db1c92bb3cd5157ffa8282dbbd6.zip
Auto merge of #30759 - Manishearth:attr-tls, r=alexcrichton
fixes #30756

r? @Gankro
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-pass/issue-30756.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/run-pass/issue-30756.rs b/src/test/run-pass/issue-30756.rs
new file mode 100644
index 00000000000..d21b42f8c87
--- /dev/null
+++ b/src/test/run-pass/issue-30756.rs
@@ -0,0 +1,16 @@
+// Copyright 2016 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.
+
+#![deny(unsafe_code)]
+
+thread_local!(static FOO: u8 = 1);
+
+fn main() {
+}