mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 12:36:35 +03:00
Add regression test for #70673
This commit is contained in:
committed by
Dylan MacKenzie
parent
fffbcc8d29
commit
f030635e66
@@ -0,0 +1,12 @@
|
||||
// Regression test for https://github.com/rust-lang/rust/issues/70673.
|
||||
|
||||
// run-pass
|
||||
|
||||
#![feature(thread_local)]
|
||||
|
||||
#[thread_local]
|
||||
static A: &u8 = &42;
|
||||
|
||||
fn main() {
|
||||
dbg!(*A);
|
||||
}
|
||||
Reference in New Issue
Block a user