Don't generate DWARF sections when no functions were compiled. (#894)
This commit is contained in:
@@ -13,3 +13,9 @@ fn instantiate_empty_module() {
|
||||
let data = wat::parse_str(include_str!("./regressions/empty.wat")).unwrap();
|
||||
oracles::instantiate(&data, Strategy::Auto);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn instantiate_empty_module_with_memory() {
|
||||
let data = wat::parse_str(include_str!("./regressions/empty_with_memory.wat")).unwrap();
|
||||
oracles::instantiate(&data, Strategy::Auto);
|
||||
}
|
||||
|
||||
1
crates/fuzzing/tests/regressions/empty_with_memory.wat
Normal file
1
crates/fuzzing/tests/regressions/empty_with_memory.wat
Normal file
@@ -0,0 +1 @@
|
||||
(module (memory 1))
|
||||
Reference in New Issue
Block a user