aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2025-01-02 11:00:21 +0000
committerCohenArthur <arthur.cohen@embecosm.com>2025-01-20 12:09:26 +0000
commit0722d35b69aa281622be416417a242a1fa698890 (patch)
tree38bcdb6f2cc2a459365de7c5fcf5240370d64e7b /gcc
parent0c52c4c271dbde15541f495977ae9f9b14c49ef9 (diff)
downloadgcc-0722d35b69aa281622be416417a242a1fa698890.zip
gcc-0722d35b69aa281622be416417a242a1fa698890.tar.gz
gcc-0722d35b69aa281622be416417a242a1fa698890.tar.bz2
derive(Clone): Improve existing testcase
gcc/testsuite/ChangeLog: * rust/compile/derive_macro4.rs: Mark Copy and Clone as lang items.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/rust/compile/derive_macro4.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/testsuite/rust/compile/derive_macro4.rs b/gcc/testsuite/rust/compile/derive_macro4.rs
index b20043b..8bf1bca 100644
--- a/gcc/testsuite/rust/compile/derive_macro4.rs
+++ b/gcc/testsuite/rust/compile/derive_macro4.rs
@@ -1,7 +1,10 @@
#[lang = "sized"]
pub trait Sized {}
+#[lang = "copy"]
pub trait Copy {}
+
+#[lang = "clone"]
pub trait Clone {
fn clone(&self) -> Self;
}