blob: f6e87234631475a12b76579f6fff2caa60b1da75 (
plain) (
tree)
|
|
/*
* test.c
*/
#include <stdint.h>
typedef uint32_t u32;
typedef uint8_t u8;
__attribute__((import_module("env"), import_name("imported_func")))
void imported_func(void);
__attribute__((export_name("exported_func")))
int exported_func(u8 *addr, u32 mem_size)
{
(void)addr;
(void)mem_size;
imported_func();
return 0;
}
int main(void)
{
return 0;
}
|