Add sanity tests
This commit is contained in:
12
wasi-common-cbindgen/tests/no_args.rs
Normal file
12
wasi-common-cbindgen/tests/no_args.rs
Normal file
@@ -0,0 +1,12 @@
|
||||
extern crate wasi_common_cbindgen;
|
||||
|
||||
pub use wasi_common_cbindgen::wasi_common_cbindgen;
|
||||
|
||||
#[wasi_common_cbindgen]
|
||||
fn no_args() -> u32 {
|
||||
0
|
||||
}
|
||||
|
||||
fn main() {
|
||||
assert_eq!(unsafe { __wasi_no_args() }, no_args());
|
||||
}
|
||||
Reference in New Issue
Block a user