Move /src/test to /tests
This commit is contained in:
parent
ca855e6e42
commit
cf2dff2b1e
27592 changed files with 0 additions and 0 deletions
|
@ -1,16 +0,0 @@
|
|||
// compile-flags: -O -C debug-assertions=yes
|
||||
|
||||
#![crate_type = "lib"]
|
||||
#![feature(strict_provenance)]
|
||||
|
||||
#[no_mangle]
|
||||
pub fn test(src: *const u8, dst: *const u8) -> usize {
|
||||
// CHECK-LABEL: @test(
|
||||
// CHECK-NOT: panic
|
||||
let src_usize = src.addr();
|
||||
let dst_usize = dst.addr();
|
||||
if src_usize > dst_usize {
|
||||
return src_usize - dst_usize;
|
||||
}
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue