1 // compile-flags: -C no-prepopulate-passes
15 // See repr-transparent.rs
17 #![feature(transparent_enums, transparent_unions)]
22 #[derive(Clone, Copy)]
24 pub struct BigS([u32; 16]);
27 pub struct TsBigS(BigS);
39 // CHECK: define void @test_BigS(%BigS* [[BIGS_RET_ATTRS:.*]], [16 x i32]
41 pub extern fn test_BigS(_: BigS) -> BigS { loop {} }
43 // CHECK: define void @test_TsBigS(%TsBigS* [[BIGS_RET_ATTRS]], [16 x i32]
45 pub extern fn test_TsBigS(_: TsBigS) -> TsBigS { loop {} }
47 // CHECK: define void @test_TuBigS(%TuBigS* [[BIGS_RET_ATTRS]], [16 x i32]
49 pub extern fn test_TuBigS(_: TuBigS) -> TuBigS { loop {} }
51 // CHECK: define void @test_TeBigS(%"TeBigS::Variant"* [[BIGS_RET_ATTRS]], [16 x i32]
53 pub extern fn test_TeBigS(_: TeBigS) -> TeBigS { loop {} }
56 #[derive(Clone, Copy)]
63 pub struct TsBigU(BigU);
75 // CHECK: define void @test_BigU(%BigU* [[BIGU_RET_ATTRS:.*]], [16 x i32]
77 pub extern fn test_BigU(_: BigU) -> BigU { loop {} }
79 // CHECK: define void @test_TsBigU(%TsBigU* [[BIGU_RET_ATTRS:.*]], [16 x i32]
81 pub extern fn test_TsBigU(_: TsBigU) -> TsBigU { loop {} }
83 // CHECK: define void @test_TuBigU(%TuBigU* [[BIGU_RET_ATTRS]], [16 x i32]
85 pub extern fn test_TuBigU(_: TuBigU) -> TuBigU { loop {} }
87 // CHECK: define void @test_TeBigU(%"TeBigU::Variant"* [[BIGU_RET_ATTRS]], [16 x i32]
89 pub extern fn test_TeBigU(_: TeBigU) -> TeBigU { loop {} }