Commit 01b35984 authored by qinsoon's avatar qinsoon

[wip] remove warnings

parent 69e8132a
......@@ -123,6 +123,7 @@ impl CompilerPass for InspectInterferenceGraph {
}
#[test]
#[allow(unused_variables)]
fn test_spill1_ig() {
simple_logger::init_with_level(log::LogLevel::Trace).ok();
......@@ -179,6 +180,7 @@ fn test_spill1_ig() {
}
#[test]
#[allow(unused_variables)]
fn test_spill1() {
simple_logger::init_with_level(log::LogLevel::Trace).ok();
......@@ -195,6 +197,18 @@ fn test_spill1() {
compiler.compile(&mut func_ver);
}
backend::emit_context(&vm);
let dylib = aot::link_dylib(vec![Mu("spill1")], "libspill1.dylib");
let lib = libloading::Library::new(dylib.as_os_str()).unwrap();
unsafe {
let simple_spill : libloading::Symbol<unsafe extern fn() -> u64> = match lib.get(b"spill1") {
Ok(symbol) => symbol,
Err(e) => panic!("cannot find symbol spill1 in dylib: {:?}", e)
};
}
}
fn create_spill1() -> VM {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment