struct DummyStruct;
#[repr(transparent)]
struct TransparentComplexWrappingStructTuple(DummyStruct);
#[repr(transparent)]
struct TransparentPrimitiveWrappingStructTuple(u32);
#[repr(transparent)]
struct TransparentComplexWrappingStructure { only_field: DummyStruct }
#[repr(transparent)]
struct TransparentPrimitiveWrappingStructure { only_field: u32 }
#[repr(transparent)]
struct TransparentComplexWrapper<T> {
only_non_zero_sized_field: DummyStruct,
marker: PhantomData<T>,
}
#[repr(transparent)]
struct TransparentPrimitiveWrapper<T> {
only_non_zero_sized_field: u32,
marker: PhantomData<T>,
}
impl TransparentPrimitiveWithAssociatedConstants {
pub const ZERO: TransparentPrimitiveWithAssociatedConstants = TransparentPrimitiveWithAssociatedConstants {
bits: 0
};
}
#[repr(transparent)]
struct TransparentPrimitiveWithAssociatedConstants { bits: u32 }
impl TransparentPrimitiveWithAssociatedConstants {
pub const ONE: TransparentPrimitiveWithAssociatedConstants = TransparentPrimitiveWithAssociatedConstants {
bits: 1
};
}
enum EnumWithAssociatedConstantInImpl { A }
impl EnumWithAssociatedConstantInImpl {
pub const TEN: TransparentPrimitiveWrappingStructure = TransparentPrimitiveWrappingStructure { only_field: 10 };
}
#[no_mangle]
pub extern "C" fn root(
a: TransparentComplexWrappingStructTuple,
b: TransparentPrimitiveWrappingStructTuple,
c: TransparentComplexWrappingStructure,
d: TransparentPrimitiveWrappingStructure,
e: TransparentComplexWrapper<i32>,
f: TransparentPrimitiveWrapper<i32>,
g: TransparentPrimitiveWithAssociatedConstants,
h: EnumWithAssociatedConstantInImpl,
) { }