Fix test.

This commit is contained in:
Cai Bear 2024-03-29 15:37:43 -07:00
parent aba592d09c
commit 4500c83c62
1 changed files with 3 additions and 3 deletions

View File

@ -5,10 +5,10 @@
#[no_mangle]
// CHECK-LABEL: @noop(
pub fn noop(v: &mut Vec<u8>) {
// CHECK-NOT: reserve_for_push
// CHECK-NOT: grow_one
// CHECK-NOT: call
// CHECK: tail call void @llvm.assume
// CHECK-NOT: reserve_for_push
// CHECK-NOT: grow_one
// CHECK-NOT: call
// CHECK: ret
if let Some(x) = v.pop() {
@ -19,6 +19,6 @@ pub fn noop(v: &mut Vec<u8>) {
#[no_mangle]
// CHECK-LABEL: @push_byte(
pub fn push_byte(v: &mut Vec<u8>) {
// CHECK: call {{.*}}reserve_for_push
// CHECK: call {{.*}}grow_one
v.push(3);
}