Files
cbindgen/tests/rust/constant.rs
T
2017-11-09 18:04:22 -05:00

12 lines
176 B
Rust

const FOO: i32 = 10;
const BAR: &'static str = "hello world";
const ZOM: f32 = 3.14;
#[repr(C)]
struct Foo {
x: [i32; FOO],
}
#[no_mangle]
extern "C" fn root(x: Foo) { }