Files
cbindgen/tests/rust/constant.rs
T
Axel Nennker 19fd975b6f test for char const
Signed-off-by: Axel Nennker <axel.nennker@telekom.de>
2019-04-13 23:46:51 +02:00

13 lines
213 B
Rust

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