mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 00:03:43 +00:00
update test assertion
This commit is contained in:
parent
853feb6964
commit
e4607ff980
@ -19,7 +19,7 @@ thread_local!(static A: Cell<u32> = const { Cell::new(1) });
|
|||||||
// CHECK-LABEL: @get
|
// CHECK-LABEL: @get
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
fn get() -> u32 {
|
fn get() -> u32 {
|
||||||
// CHECK: %0 = load i32, i32* [[TLS]], align 4
|
// CHECK: %0 = load i32, i32* {{.*}}[[TLS]]{{.*}}
|
||||||
// CHECK-NEXT: ret i32 %0
|
// CHECK-NEXT: ret i32 %0
|
||||||
A.with(|a| a.get())
|
A.with(|a| a.get())
|
||||||
}
|
}
|
||||||
@ -27,7 +27,7 @@ fn get() -> u32 {
|
|||||||
// CHECK-LABEL: @set
|
// CHECK-LABEL: @set
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
fn set(v: u32) {
|
fn set(v: u32) {
|
||||||
// CHECK: store i32 %0, i32* [[TLS]], align 4
|
// CHECK: store i32 %0, i32* {{.*}}[[TLS]]{{.*}}
|
||||||
// CHECK-NEXT: ret void
|
// CHECK-NEXT: ret void
|
||||||
A.with(|a| a.set(v))
|
A.with(|a| a.set(v))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user