Skip to content

Commit 6a1f77d

Browse files
committed
Update codegen test for opaque pointers
1 parent f653d3a commit 6a1f77d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/test/codegen/repr-transparent-aggregates-2.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,19 @@ pub enum TeBigS {
3737
Variant(BigS),
3838
}
3939

40-
// CHECK: define void @test_BigS(%BigS* [[BIGS_RET_ATTRS1:.*]] sret(%BigS) [[BIGS_RET_ATTRS2:.*]], [16 x i32]
40+
// CHECK: define void @test_BigS({{%BigS\*|ptr}} [[BIGS_RET_ATTRS1:.*]] sret(%BigS) [[BIGS_RET_ATTRS2:.*]], [16 x i32]
4141
#[no_mangle]
4242
pub extern fn test_BigS(_: BigS) -> BigS { loop {} }
4343

44-
// CHECK: define void @test_TsBigS(%TsBigS* [[BIGS_RET_ATTRS1]] sret(%TsBigS) [[BIGS_RET_ATTRS2]], [16 x i32]
44+
// CHECK: define void @test_TsBigS({{%TsBigS\*|ptr}} [[BIGS_RET_ATTRS1]] sret(%TsBigS) [[BIGS_RET_ATTRS2]], [16 x i32]
4545
#[no_mangle]
4646
pub extern fn test_TsBigS(_: TsBigS) -> TsBigS { loop {} }
4747

48-
// CHECK: define void @test_TuBigS(%TuBigS* [[BIGS_RET_ATTRS1]] sret(%TuBigS) [[BIGS_RET_ATTRS2]], [16 x i32]
48+
// CHECK: define void @test_TuBigS({{%TuBigS\*|ptr}} [[BIGS_RET_ATTRS1]] sret(%TuBigS) [[BIGS_RET_ATTRS2]], [16 x i32]
4949
#[no_mangle]
5050
pub extern fn test_TuBigS(_: TuBigS) -> TuBigS { loop {} }
5151

52-
// CHECK: define void @test_TeBigS(%"TeBigS::Variant"* [[BIGS_RET_ATTRS1]] sret(%"TeBigS::Variant") [[BIGS_RET_ATTRS2]], [16 x i32]
52+
// CHECK: define void @test_TeBigS({{%"TeBigS::Variant"\*|ptr}} [[BIGS_RET_ATTRS1]] sret(%"TeBigS::Variant") [[BIGS_RET_ATTRS2]], [16 x i32]
5353
#[no_mangle]
5454
pub extern fn test_TeBigS(_: TeBigS) -> TeBigS { loop {} }
5555

@@ -73,18 +73,18 @@ pub enum TeBigU {
7373
Variant(BigU),
7474
}
7575

76-
// CHECK: define void @test_BigU(%BigU* [[BIGU_RET_ATTRS1:.*]] sret(%BigU) [[BIGU_RET_ATTRS2:.*]], [16 x i32]
76+
// CHECK: define void @test_BigU({{%BigU\*|ptr}} [[BIGU_RET_ATTRS1:.*]] sret(%BigU) [[BIGU_RET_ATTRS2:.*]], [16 x i32]
7777
#[no_mangle]
7878
pub extern fn test_BigU(_: BigU) -> BigU { loop {} }
7979

80-
// CHECK: define void @test_TsBigU(%TsBigU* [[BIGU_RET_ATTRS1]] sret(%TsBigU) [[BIGU_RET_ATTRS2]], [16 x i32]
80+
// CHECK: define void @test_TsBigU({{%TsBigU\*|ptr}} [[BIGU_RET_ATTRS1]] sret(%TsBigU) [[BIGU_RET_ATTRS2]], [16 x i32]
8181
#[no_mangle]
8282
pub extern fn test_TsBigU(_: TsBigU) -> TsBigU { loop {} }
8383

84-
// CHECK: define void @test_TuBigU(%TuBigU* [[BIGU_RET_ATTRS1]] sret(%TuBigU) [[BIGU_RET_ATTRS2]], [16 x i32]
84+
// CHECK: define void @test_TuBigU({{%TuBigU\*|ptr}} [[BIGU_RET_ATTRS1]] sret(%TuBigU) [[BIGU_RET_ATTRS2]], [16 x i32]
8585
#[no_mangle]
8686
pub extern fn test_TuBigU(_: TuBigU) -> TuBigU { loop {} }
8787

88-
// CHECK: define void @test_TeBigU(%"TeBigU::Variant"* [[BIGU_RET_ATTRS1]] sret(%"TeBigU::Variant") [[BIGU_RET_ATTRS2]], [16 x i32]
88+
// CHECK: define void @test_TeBigU({{%"TeBigU::Variant"\*|ptr}} [[BIGU_RET_ATTRS1]] sret(%"TeBigU::Variant") [[BIGU_RET_ATTRS2]], [16 x i32]
8989
#[no_mangle]
9090
pub extern fn test_TeBigU(_: TeBigU) -> TeBigU { loop {} }

0 commit comments

Comments
 (0)