mirror of https://github.com/rust-lang/rust.git
Fix test.
This commit is contained in:
parent
aba592d09c
commit
4500c83c62
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue