wasm-micro-runtime/samples/import-func-callback/wasm-apps/test.c
Zhenwei Jin 74cdf0b8c1
Add import functions callback (#4606)
Signed-off-by: zhenweijin <zhenwei.jin@intel.com>
2025-10-09 12:04:29 +08:00

18 lines
296 B
C

/*
* Copyright (C) 2019 Intel Corporation. All rights reserved.
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*/
extern int
import_func1(int a, int b);
extern int
import_func2(int a);
int
test()
{
int a = import_func1(1, 2);
int b = import_func2(3);
return a + b;
}