test: update mie tests
This commit is contained in:
@@ -13,8 +13,7 @@ int main(void)
|
||||
struct mie_module *mod = mie_module_create();
|
||||
struct mie_builder *builder = mie_builder_create(ctx, NULL);
|
||||
struct mie_func *func = mie_func_create(
|
||||
"test", MIE_FUNC_STATIC, mie_ctx_get_type(ctx, MIE_TYPE_VOID),
|
||||
NULL, 0);
|
||||
MIE_FUNC_STATIC, mie_ctx_get_type(ctx, MIE_TYPE_VOID));
|
||||
|
||||
struct mie_type *i32 = mie_ctx_get_int_type(ctx, 32);
|
||||
|
||||
@@ -53,7 +52,7 @@ int main(void)
|
||||
mie_func_insert_block(func, local_vars, NULL);
|
||||
mie_func_insert_block(func, entry, NULL);
|
||||
|
||||
mie_module_add_function(mod, func);
|
||||
mie_module_add_function(mod, func, "test");
|
||||
|
||||
struct mie_ir_converter *converter
|
||||
= mie_ir_converter_create(MIE_IR_MEM, MIE_IR_TEXT);
|
||||
|
||||
Reference in New Issue
Block a user