1 // compile-flags: -C no-prepopulate-passes
14 // See repr-transparent.rs
16 #![feature(transparent_enums, transparent_unions)]
21 #[derive(Clone, Copy)]
23 pub struct BigS([u32; 16]);
26 pub struct TsBigS(BigS);
38 // CHECK: define void @test_BigS(%BigS* [[BIGS_RET_ATTRS:.*]], [16 x i32]
40 pub extern fn test_BigS(_: BigS) -> BigS { loop {} }
42 // CHECK: define void @test_TsBigS(%TsBigS* [[BIGS_RET_ATTRS]], [16 x i32]
44 pub extern fn test_TsBigS(_: TsBigS) -> TsBigS { loop {} }
46 // CHECK: define void @test_TuBigS(%TuBigS* [[BIGS_RET_ATTRS]], [16 x i32]
48 pub extern fn test_TuBigS(_: TuBigS) -> TuBigS { loop {} }
50 // CHECK: define void @test_TeBigS(%"TeBigS::Variant"* [[BIGS_RET_ATTRS]], [16 x i32]
52 pub extern fn test_TeBigS(_: TeBigS) -> TeBigS { loop {} }
55 #[derive(Clone, Copy)]
62 pub struct TsBigU(BigU);
74 // CHECK: define void @test_BigU(%BigU* [[BIGU_RET_ATTRS:.*]], [16 x i32]
76 pub extern fn test_BigU(_: BigU) -> BigU { loop {} }
78 // CHECK: define void @test_TsBigU(%TsBigU* [[BIGU_RET_ATTRS:.*]], [16 x i32]
80 pub extern fn test_TsBigU(_: TsBigU) -> TsBigU { loop {} }
82 // CHECK: define void @test_TuBigU(%TuBigU* [[BIGU_RET_ATTRS]], [16 x i32]
84 pub extern fn test_TuBigU(_: TuBigU) -> TuBigU { loop {} }
86 // CHECK: define void @test_TeBigU(%"TeBigU::Variant"* [[BIGU_RET_ATTRS]], [16 x i32]
88 pub extern fn test_TeBigU(_: TeBigU) -> TeBigU { loop {} }