Skip to content

Commit ffd3e57

Browse files
committed
gccrs: Adds tests from issue 4245
Adds tests for the testsuite gcc/testsuite/ChangeLog: * rust/compile/issue-4245.rs: New test. Signed-off-by: lenny.chiadmi-delage <[email protected]>
1 parent 70e9e20 commit ffd3e57

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#![cfg_attr(not(cg_gcc), feature(intrinsics))]
2+
#![feature(lang_items)]
3+
4+
#[lang = "sized"]
5+
pub trait Sized {}
6+
7+
#[cfg(not(cg_gcc))]
8+
extern "rust-intrinsic" {
9+
fn copy_nonoverlapping<T>(src: &T, dst: &mut T, count: usize);
10+
}

0 commit comments

Comments
 (0)