Skip to content

Commit 9f91a95

Browse files
committed
Ignore changes when debug assertions are enabled.
1 parent 24abe16 commit 9f91a95

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/codegen/issue-44056-macos-tls-align.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
// ignore-tidy-linelength
22
// only-macos
33
// no-system-llvm
4-
// ignore-debug: the debug assertions get in the way
54
// compile-flags: -O
65

76
#![crate_type = "rlib"]
87
#![feature(thread_local)]
98

10-
// CHECK: @STATIC_VAR_1 = thread_local local_unnamed_addr global <{ [32 x i8] }> zeroinitializer, section "__DATA,__thread_bss", align 4
9+
// local_unnamed_addr does not appear when std is built with debug assertions.
10+
// CHECK: @STATIC_VAR_1 = thread_local {{(local_unnamed_addr )?}}global <{ [32 x i8] }> zeroinitializer, section "__DATA,__thread_bss", align 4
1111
#[no_mangle]
1212
#[thread_local]
1313
static mut STATIC_VAR_1: [u32; 8] = [0; 8];
1414

15-
// CHECK: @STATIC_VAR_2 = thread_local local_unnamed_addr global <{ [32 x i8] }> <{{[^>]*}}>, section "__DATA,__thread_data", align 4
15+
// CHECK: @STATIC_VAR_2 = thread_local {{(local_unnamed_addr )?}}global <{ [32 x i8] }> <{{[^>]*}}>, section "__DATA,__thread_data", align 4
1616
#[no_mangle]
1717
#[thread_local]
1818
static mut STATIC_VAR_2: [u32; 8] = [4; 8];

0 commit comments

Comments
 (0)