| 1 |
use std::num::*; |
| 2 |
|
| 3 |
#[repr(C)] |
| 4 |
pub struct NonZeroTest { |
| 5 |
pub a: NonZeroU8, |
| 6 |
pub b: NonZeroU16, |
| 7 |
pub c: NonZeroU32, |
| 8 |
pub d: NonZeroU64, |
| 9 |
pub e: NonZeroI8, |
| 10 |
pub f: NonZeroI16, |
| 11 |
pub g: NonZeroI32, |
| 12 |
pub h: NonZeroI64, |
| 13 |
pub i: Option<NonZeroI64>, |
| 14 |
pub j: *const Option<Option<NonZeroI64>>, |
| 15 |
} |
| 16 |
|
| 17 |
#[no_mangle] |
| 18 |
pub extern "C" fn root( |
| 19 |
test: NonZeroTest, |
| 20 |
a: NonZeroU8, |
| 21 |
b: NonZeroU16, |
| 22 |
c: NonZeroU32, |
| 23 |
d: NonZeroU64, |
| 24 |
e: NonZeroI8, |
| 25 |
f: NonZeroI16, |
| 26 |
g: NonZeroI32, |
| 27 |
h: NonZeroI64, |
| 28 |
i: Option<NonZeroI64>, |
| 29 |
j: *const Option<Option<NonZeroI64>>, |
| 30 |
) {} |