Skip to content

Commit

Permalink
update test assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
Krasimir Georgiev authored and Krasimir Georgiev committed Jan 17, 2022
1 parent 853feb6 commit e4607ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/codegen/thread-local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ thread_local!(static A: Cell<u32> = const { Cell::new(1) });
// CHECK-LABEL: @get
#[no_mangle]
fn get() -> u32 {
// CHECK: %0 = load i32, i32* [[TLS]], align 4
// CHECK: %0 = load i32, i32* {{.*}}[[TLS]]{{.*}}
// CHECK-NEXT: ret i32 %0
A.with(|a| a.get())
}

// CHECK-LABEL: @set
#[no_mangle]
fn set(v: u32) {
// CHECK: store i32 %0, i32* [[TLS]], align 4
// CHECK: store i32 %0, i32* {{.*}}[[TLS]]{{.*}}
// CHECK-NEXT: ret void
A.with(|a| a.set(v))
}
Expand Down

0 comments on commit e4607ff

Please sign in to comment.