about summary refs log tree commit diff
path: root/tests/codegen/emcripten-catch-unwind.rs
diff options
context:
space:
mode:
authorBen Kimock <kimockb@gmail.com>2024-07-24 19:12:50 -0400
committerBen Kimock <kimockb@gmail.com>2024-07-25 15:14:42 -0400
commita7d57aa7c8f42dda6d33e0ac349cf834eaf041b8 (patch)
tree2ec95ebff75de2ac0d843ac244c12ab660baa0b2 /tests/codegen/emcripten-catch-unwind.rs
parent92c6c03805408a1a261b98013304e9bbf59ee428 (diff)
downloadrust-a7d57aa7c8f42dda6d33e0ac349cf834eaf041b8.tar.gz
rust-a7d57aa7c8f42dda6d33e0ac349cf834eaf041b8.zip
Let InstCombine remove Clone shims inside Clone shims
Co-authored-by: scottmcm <scottmcm@users.noreply.github.com>
Diffstat (limited to 'tests/codegen/emcripten-catch-unwind.rs')
-rw-r--r--tests/codegen/emcripten-catch-unwind.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/codegen/emcripten-catch-unwind.rs b/tests/codegen/emcripten-catch-unwind.rs
index 6cda8c6799f..35444db9558 100644
--- a/tests/codegen/emcripten-catch-unwind.rs
+++ b/tests/codegen/emcripten-catch-unwind.rs
@@ -16,6 +16,8 @@ trait Freeze {}
 #[lang = "copy"]
 trait Copy {}
 
+impl<T> Copy for *mut T {}
+
 #[rustc_intrinsic]
 fn size_of<T>() -> usize {
     loop {}