Files
cbindgen/tests/rust/rename.rs
T
Ingvar Stepanyan 8ea3b2d25f Respect visibility of constants (#314)
Fixes #123:
 - Adds visibility check for module-level constants.
 - Adds visibility check for associated constants.
 - Fixes bitflags expansion to produce public associated constants (as the real expansion does).
2019-04-16 11:25:23 +02:00

46 lines
404 B
Rust

struct A {
x: i32,
y: f32,
}
#[repr(C)]
struct B {
x: i32,
y: f32,
}
union C {
x: i32,
y: f32,
}
#[repr(C)]
union D {
x: i32,
y: f32,
}
#[repr(u8)]
enum E {
x = 0,
y = 1,
}
type F = A;
#[no_mangle]
pub static G: i32 = 10;
pub const H: i32 = 10;
#[no_mangle]
pub extern "C" fn root(
a: *const A,
b: B,
c: C,
d: D,
e: E,
f: F,
) { }