diff options
| author | Michael Goulet <michael@errs.io> | 2023-02-15 03:42:45 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2023-02-18 19:47:34 +0000 |
| commit | e82cc656c822af7f1905b757a27cac5823fbc301 (patch) | |
| tree | 6126aa215982fa90c2540f4666818ea115a72ae3 /tests/codegen/function-arguments.rs | |
| parent | 1f11d841b5748133c2d51da0001fc88bc6b51e78 (diff) | |
| download | rust-e82cc656c822af7f1905b757a27cac5823fbc301.tar.gz rust-e82cc656c822af7f1905b757a27cac5823fbc301.zip | |
Make dyn* have the same scalar pair ABI as corresponding fat pointer
Diffstat (limited to 'tests/codegen/function-arguments.rs')
| -rw-r--r-- | tests/codegen/function-arguments.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/codegen/function-arguments.rs b/tests/codegen/function-arguments.rs index 63f05119031..d6f019016a5 100644 --- a/tests/codegen/function-arguments.rs +++ b/tests/codegen/function-arguments.rs @@ -281,7 +281,9 @@ pub fn enum_id_2(x: Option<u8>) -> Option<u8> { x } -// CHECK: { {{i8\*|ptr}}, {{i.*\*|ptr}} } @dyn_star({{i8\*|ptr}} noundef %x.0, {{i.*\*|ptr}} noalias noundef readonly align {{.*}} dereferenceable({{.*}}) %x.1) +// CHECK: { {{\{\}\*|ptr}}, {{.+}} } @dyn_star({{\{\}\*|ptr}} noundef %x.0, {{.+}} noalias noundef readonly align {{.*}} dereferenceable({{.*}}) %x.1) +// Expect an ABI something like `{ {}*, [3 x i64]* }`, but that's hard to match on generically, +// so do like the `trait_box` test and just match on `{{.+}}` for the vtable. #[no_mangle] pub fn dyn_star(x: dyn* Drop) -> dyn* Drop { x |
