1 // compile-flags: -C no-prepopulate-passes
5 // See repr-transparent.rs
7 #![feature(transparent_unions)]
12 #[derive(Clone, Copy)]
14 pub struct BigS([u32; 16]);
17 pub struct TsBigS(BigS);
29 // CHECK: define void @test_BigS(%BigS* [[BIGS_RET_ATTRS1:.*]] sret(%BigS) [[BIGS_RET_ATTRS2:.*]], [8 x i64]
31 pub extern fn test_BigS(_: BigS) -> BigS { loop {} }
33 // CHECK: define void @test_TsBigS(%TsBigS* [[BIGS_RET_ATTRS1]] sret(%TsBigS) [[BIGS_RET_ATTRS2]], [8 x i64]
35 pub extern fn test_TsBigS(_: TsBigS) -> TsBigS { loop {} }
37 // CHECK: define void @test_TuBigS(%TuBigS* [[BIGS_RET_ATTRS1]] sret(%TuBigS) [[BIGS_RET_ATTRS2]], [8 x i64]
39 pub extern fn test_TuBigS(_: TuBigS) -> TuBigS { loop {} }
41 // CHECK: define void @test_TeBigS(%"TeBigS::Variant"* [[BIGS_RET_ATTRS1]] sret(%"TeBigS::Variant") [[BIGS_RET_ATTRS2]], [8 x i64]
43 pub extern fn test_TeBigS(_: TeBigS) -> TeBigS { loop {} }
46 #[derive(Clone, Copy)]
53 pub struct TsBigU(BigU);
65 // CHECK: define void @test_BigU(%BigU* [[BIGU_RET_ATTRS1:.*]] sret(%BigU) [[BIGU_RET_ATTRS2:.*]], [8 x i64]
67 pub extern fn test_BigU(_: BigU) -> BigU { loop {} }
69 // CHECK: define void @test_TsBigU(%TsBigU* [[BIGU_RET_ATTRS1]] sret(%TsBigU) [[BIGU_RET_ATTRS2]], [8 x i64]
71 pub extern fn test_TsBigU(_: TsBigU) -> TsBigU { loop {} }
73 // CHECK: define void @test_TuBigU(%TuBigU* [[BIGU_RET_ATTRS1]] sret(%TuBigU) [[BIGU_RET_ATTRS2]], [8 x i64]
75 pub extern fn test_TuBigU(_: TuBigU) -> TuBigU { loop {} }
77 // CHECK: define void @test_TeBigU(%"TeBigU::Variant"* [[BIGU_RET_ATTRS1]] sret(%"TeBigU::Variant") [[BIGU_RET_ATTRS2]], [8 x i64]
79 pub extern fn test_TeBigU(_: TeBigU) -> TeBigU { loop {} }