Initial reorg.
This is largely the same as #305, but updated for the current tree.
This commit is contained in:
12
crates/wasi-common/wasi-common-cbindgen/tests/no_args.rs
Normal file
12
crates/wasi-common/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_common_no_args() }, no_args());
|
||||
}
|
||||
Reference in New Issue
Block a user