Rollup merge of #70720 - ecstatic-morse:issue-70637, r=oli-obk
Place TLS initializers with relocations in .tdata Should fix #70673, although I'm not sure how to test this. Perhaps @joshlf could find a MCVE? Also adds more context to the FIXME. r? @oli-obk
This commit is contained in:
commit
80690b0418
2 changed files with 25 additions and 16 deletions
12
src/test/ui/issues/issue-70673.rs
Normal file
12
src/test/ui/issues/issue-70673.rs
Normal 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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue