Add cli test for false interpreter

This commit is contained in:
Brendan Hansknecht 2021-10-19 11:27:05 -07:00
parent 0ca6a3d723
commit b4be6da3a4
5 changed files with 103 additions and 11 deletions

View file

@ -62,6 +62,16 @@ pub unsafe fn roc_panic(c_ptr: *mut c_void, tag_id: u32) {
}
}
#[no_mangle]
pub unsafe extern "C" fn roc_memcpy(dst: *mut c_void, src: *mut c_void, n: usize) -> *mut c_void {
libc::memcpy(dst, src, n)
}
#[no_mangle]
pub unsafe extern "C" fn roc_memset(dst: *mut c_void, c: i32, n: usize) -> *mut c_void {
libc::memset(dst, c, n)
}
#[no_mangle]
pub fn rust_main() -> i32 {
let arg = env::args().skip(1).next().unwrap();