Skip to content

Commit

Permalink
Update tests/codegen/clone-shims.rs
Browse files Browse the repository at this point in the history
Co-authored-by: scottmcm <scottmcm@users.noreply.github.com>
  • Loading branch information
saethlin and scottmcm authored Jul 25, 2024
1 parent 2ea75e2 commit 6043a32
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/codegen/clone-shims.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
pub type Test = (i32, i32, *const i32);
pub static TEST: fn(&Test) -> Test = <Test as core::clone::Clone>::clone;

// CHECK-NOT: call <i32 as core::clone::Clone>::clone
// CHECK-NOT: call <*const i32 as core::clone::Clone>::clone
// CHECK: ; <(i32, i32, *const i32) as core::clone::Clone>::clone
// CHECK-NOT: call <i32 as core::clone::Clone>::clone
// CHECK-NOT: call <*const i32 as core::clone::Clone>::clone

0 comments on commit 6043a32

Please sign in to comment.