diff options
| author | Eric Huss <eric@huss.org> | 2020-07-09 10:20:52 -0700 |
|---|---|---|
| committer | Eric Huss <eric@huss.org> | 2020-07-09 10:41:33 -0700 |
| commit | 9f91a9540d5058eb7b384d1a58e81a4672fea7b4 (patch) | |
| tree | 0ffbd941cfe8abf83d2a692bcf3bfc199e1f8898 /src/test/codegen | |
| parent | 24abe1646e24caca79cd649f71cd4806a488ee7d (diff) | |
| download | rust-9f91a9540d5058eb7b384d1a58e81a4672fea7b4.tar.gz rust-9f91a9540d5058eb7b384d1a58e81a4672fea7b4.zip | |
Ignore changes when debug assertions are enabled.
Diffstat (limited to 'src/test/codegen')
| -rw-r--r-- | src/test/codegen/issue-44056-macos-tls-align.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/codegen/issue-44056-macos-tls-align.rs b/src/test/codegen/issue-44056-macos-tls-align.rs index 5abbfa5dd24..2270eca5014 100644 --- a/src/test/codegen/issue-44056-macos-tls-align.rs +++ b/src/test/codegen/issue-44056-macos-tls-align.rs @@ -1,18 +1,18 @@ // ignore-tidy-linelength // only-macos // no-system-llvm -// ignore-debug: the debug assertions get in the way // compile-flags: -O #![crate_type = "rlib"] #![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] #[thread_local] 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] #[thread_local] static mut STATIC_VAR_2: [u32; 8] = [4; 8]; |
