about summary refs log tree commit diff
path: root/src/test/codegen/adjustments.rs
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2022-02-21 11:21:23 +0100
committerNikita Popov <npopov@redhat.com>2022-05-25 17:29:37 +0200
commit4d7ff4e5096625b56f154fa485a1af9351c41b5c (patch)
tree3accd67d92f1ed24fa40659753d104e198a0df35 /src/test/codegen/adjustments.rs
parentebc8ab1e4e678202977e17a34313a98e7e899ed3 (diff)
downloadrust-4d7ff4e5096625b56f154fa485a1af9351c41b5c.tar.gz
rust-4d7ff4e5096625b56f154fa485a1af9351c41b5c.zip
Update some codegen tests for opaque pointers
Diffstat (limited to 'src/test/codegen/adjustments.rs')
-rw-r--r--src/test/codegen/adjustments.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/codegen/adjustments.rs b/src/test/codegen/adjustments.rs
index ded310d0aeb..39880c9341f 100644
--- a/src/test/codegen/adjustments.rs
+++ b/src/test/codegen/adjustments.rs
@@ -13,9 +13,9 @@ pub fn helper(_: usize) {
 pub fn no_op_slice_adjustment(x: &[u8]) -> &[u8] {
     // We used to generate an extra alloca and memcpy for the block's trailing expression value, so
     // check that we copy directly to the return value slot
-// CHECK: %0 = insertvalue { [0 x i8]*, [[USIZE]] } undef, [0 x i8]* %x.0, 0
-// CHECK: %1 = insertvalue { [0 x i8]*, [[USIZE]] } %0, [[USIZE]] %x.1, 1
-// CHECK: ret { [0 x i8]*, [[USIZE]] } %1
+// CHECK: %0 = insertvalue { {{\[0 x i8\]\*|ptr}}, [[USIZE]] } undef, {{\[0 x i8\]\*|ptr}} %x.0, 0
+// CHECK: %1 = insertvalue { {{\[0 x i8\]\*|ptr}}, [[USIZE]] } %0, [[USIZE]] %x.1, 1
+// CHECK: ret { {{\[0 x i8\]\*|ptr}}, [[USIZE]] } %1
     { x }
 }