Ignore changes when debug assertions are enabled.
This commit is contained in:
parent
24abe1646e
commit
9f91a9540d
1 changed files with 3 additions and 3 deletions
|
@ -1,18 +1,18 @@
|
||||||
// ignore-tidy-linelength
|
// ignore-tidy-linelength
|
||||||
// only-macos
|
// only-macos
|
||||||
// no-system-llvm
|
// no-system-llvm
|
||||||
// ignore-debug: the debug assertions get in the way
|
|
||||||
// compile-flags: -O
|
// compile-flags: -O
|
||||||
|
|
||||||
#![crate_type = "rlib"]
|
#![crate_type = "rlib"]
|
||||||
#![feature(thread_local)]
|
#![feature(thread_local)]
|
||||||
|
|
||||||
// CHECK: @STATIC_VAR_1 = thread_local local_unnamed_addr global <{ [32 x i8] }> zeroinitializer, section "__DATA,__thread_bss", align 4
|
// local_unnamed_addr does not appear when std is built with debug assertions.
|
||||||
|
// CHECK: @STATIC_VAR_1 = thread_local {{(local_unnamed_addr )?}}global <{ [32 x i8] }> zeroinitializer, section "__DATA,__thread_bss", align 4
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
#[thread_local]
|
#[thread_local]
|
||||||
static mut STATIC_VAR_1: [u32; 8] = [0; 8];
|
static mut STATIC_VAR_1: [u32; 8] = [0; 8];
|
||||||
|
|
||||||
// CHECK: @STATIC_VAR_2 = thread_local local_unnamed_addr global <{ [32 x i8] }> <{{[^>]*}}>, section "__DATA,__thread_data", align 4
|
// CHECK: @STATIC_VAR_2 = thread_local {{(local_unnamed_addr )?}}global <{ [32 x i8] }> <{{[^>]*}}>, section "__DATA,__thread_data", align 4
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
#[thread_local]
|
#[thread_local]
|
||||||
static mut STATIC_VAR_2: [u32; 8] = [4; 8];
|
static mut STATIC_VAR_2: [u32; 8] = [4; 8];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue