From: "lenny.chiadmi-delage" <[email protected]>

Adds tests for the testsuite

gcc/testsuite/ChangeLog:

        * rust/compile/issue-4245.rs: New test.

Signed-off-by: lenny.chiadmi-delage <[email protected]>
---
This change was merged into the gccrs repository and is posted here for
upstream visibility and potential drive-by review, as requested by GCC
release managers.
Each commit email contains a link to its details on github from where you can
find the Pull-Request and associated discussions.


Commit on github: 
https://github.com/Rust-GCC/gccrs/commit/6392e57f1c0a76cc74524c4c460ab6003e9846f9
The commit is not linked to any pull-request

 gcc/testsuite/rust/compile/issue-4245.rs | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 gcc/testsuite/rust/compile/issue-4245.rs

diff --git a/gcc/testsuite/rust/compile/issue-4245.rs 
b/gcc/testsuite/rust/compile/issue-4245.rs
new file mode 100644
index 000000000..6e729ece0
--- /dev/null
+++ b/gcc/testsuite/rust/compile/issue-4245.rs
@@ -0,0 +1,10 @@
+#![cfg_attr(not(cg_gcc), feature(intrinsics))]
+#![feature(lang_items)]
+
+#[lang = "sized"]
+pub trait Sized {}
+
+#[cfg(not(cg_gcc))]
+extern "rust-intrinsic" {
+    fn copy_nonoverlapping<T>(src: &T, dst: &mut T, count: usize);
+}
-- 
2.52.0

Reply via email to