diff --git a/ext/ffi/tcc.rs b/ext/ffi/tcc.rs index edc30c8932c161..de7c719602f141 100644 --- a/ext/ffi/tcc.rs +++ b/ext/ffi/tcc.rs @@ -114,30 +114,3 @@ impl Drop for Compiler { unsafe { tcc_delete(self.inner) }; } } - -#[cfg(test)] -mod test { - use super::*; - use std::ffi::CString; - - #[test] - fn test_compiler_jit() { - let p = CString::new( - r#" - #include - int32_t add(int32_t a, int32_t b) { - return a + b; - } - "# - .as_bytes(), - ) - .unwrap(); - let sym = CString::new("add".as_bytes()).unwrap(); - - let mut ctx = Compiler::new().unwrap(); - let ops = CString::new("-nostdlib").unwrap(); - ctx.set_options(&ops); - assert!(ctx.compile_string(&p).is_ok()); - ctx.relocate_and_get_symbol(&sym).unwrap(); - } -}