1 // compile-flags: -C no-prepopulate-passes
4 // See repr-transparent.rs
6 #![feature(transparent_enums, transparent_unions)]
11 #[derive(Clone, Copy)]
13 pub struct BigS([u32; 16]);
16 pub struct TsBigS(BigS);
28 // CHECK: define void @test_BigS(%BigS* [[BIGS_RET_ATTRS:.*]], [8 x i64]
30 pub extern fn test_BigS(_: BigS) -> BigS { loop {} }
32 // CHECK: define void @test_TsBigS(%TsBigS* [[BIGS_RET_ATTRS]], [8 x i64]
34 pub extern fn test_TsBigS(_: TsBigS) -> TsBigS { loop {} }
36 // CHECK: define void @test_TuBigS(%TuBigS* [[BIGS_RET_ATTRS]], [8 x i64]
38 pub extern fn test_TuBigS(_: TuBigS) -> TuBigS { loop {} }
40 // CHECK: define void @test_TeBigS(%"TeBigS::Variant"* [[BIGS_RET_ATTRS]], [8 x i64]
42 pub extern fn test_TeBigS(_: TeBigS) -> TeBigS { loop {} }
45 #[derive(Clone, Copy)]
52 pub struct TsBigU(BigU);
64 // CHECK: define void @test_BigU(%BigU* [[BIGU_RET_ATTRS:.*]], [8 x i64]
66 pub extern fn test_BigU(_: BigU) -> BigU { loop {} }
68 // CHECK: define void @test_TsBigU(%TsBigU* [[BIGU_RET_ATTRS:.*]], [8 x i64]
70 pub extern fn test_TsBigU(_: TsBigU) -> TsBigU { loop {} }
72 // CHECK: define void @test_TuBigU(%TuBigU* [[BIGU_RET_ATTRS]], [8 x i64]
74 pub extern fn test_TuBigU(_: TuBigU) -> TuBigU { loop {} }
76 // CHECK: define void @test_TeBigU(%"TeBigU::Variant"* [[BIGU_RET_ATTRS]], [8 x i64]
78 pub extern fn test_TeBigU(_: TeBigU) -> TeBigU { loop {} }