summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/ffi/tcc.rs27
1 files changed, 0 insertions, 27 deletions
diff --git a/ext/ffi/tcc.rs b/ext/ffi/tcc.rs
index edc30c893..de7c71960 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 <stdint.h>
- 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();
- }
-}