Add regression test for #70673

This commit is contained in:
Oliver Scherer 2020-04-03 10:50:06 -07:00 committed by Dylan MacKenzie
parent fffbcc8d29
commit f030635e66

View File

@ -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);
}