diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2023-05-15 21:15:28 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2023-07-08 15:38:40 +0200 |
| commit | d7983a2f231a279984fc70eb428b936930eaa45c (patch) | |
| tree | 7e289bf73e50ac6d40b8d03575a34d6d32bb7dee /tests/codegen/avr/avr-func-addrspace.rs | |
| parent | d4096e0412ac5de785d739a0aa2b1c1c7b9d3b7d (diff) | |
| download | rust-d7983a2f231a279984fc70eb428b936930eaa45c.tar.gz rust-d7983a2f231a279984fc70eb428b936930eaa45c.zip | |
Always name the return place.
Diffstat (limited to 'tests/codegen/avr/avr-func-addrspace.rs')
| -rw-r--r-- | tests/codegen/avr/avr-func-addrspace.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/codegen/avr/avr-func-addrspace.rs b/tests/codegen/avr/avr-func-addrspace.rs index bc11e108124..83baae9e432 100644 --- a/tests/codegen/avr/avr-func-addrspace.rs +++ b/tests/codegen/avr/avr-func-addrspace.rs @@ -116,7 +116,7 @@ pub enum Either<T, U> { A(T), B(U) } // with the `ptr` field representing both `&i32` and `fn()` depending on the variant. // This is incorrect, because `fn()` should be `ptr addrspace(1)`, not `ptr`. -// CHECK: define{{.+}}void @should_not_combine_addrspace({{.+\*|ptr}}{{.+}}sret{{.+}}%0, {{.+\*|ptr}}{{.+}}%x) +// CHECK: define{{.+}}void @should_not_combine_addrspace({{.+\*|ptr}}{{.+}}sret{{.+}}%_0, {{.+\*|ptr}}{{.+}}%x) #[no_mangle] #[inline(never)] pub fn should_not_combine_addrspace(x: Either<&i32, fn()>) -> Either<&i32, fn()> { |
