1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- 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;
- pub const I: isize = 10 as *mut F as isize;
- #[no_mangle]
- pub extern "C" fn root(
- a: *const A,
- b: B,
- c: C,
- d: D,
- e: E,
- f: F,
- ) { }
|