18 lines
221 B
Rust
18 lines
221 B
Rust
#[no_mangle]
|
|
pub static NUMBER: i32 = 10;
|
|
|
|
#[repr(C)]
|
|
struct Foo {
|
|
}
|
|
|
|
struct Bar {
|
|
}
|
|
|
|
#[no_mangle]
|
|
pub static mut FOO: Foo = Foo { };
|
|
#[no_mangle]
|
|
pub static BAR: Bar = Bar { };
|
|
|
|
#[no_mangle]
|
|
pub extern "C" fn root() { }
|