Skip to content

Commit c040a48

Browse files
committed
Remove extern and some return value as an attempt to make the test pass on more platforms
1 parent 562be7e commit c040a48

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/test/codegen/union-abi.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ pub struct i64x4(i64, i64, i64, i64);
2626
#[derive(Copy, Clone)]
2727
pub union UnionI64x4{ a:(), b: i64x4 }
2828

29-
// CHECK: define <4 x i64> @test_UnionI64x4(<4 x i64> %arg0)
29+
// CHECK: define void @test_UnionI64x4(<4 x i64>* {{.*}} %arg0)
3030
#[no_mangle]
31-
pub extern fn test_UnionI64x4(_: UnionI64x4) -> UnionI64x4 { loop {} }
31+
pub fn test_UnionI64x4(_: UnionI64x4) { loop {} }
3232

3333
pub union UnionI64x4_{ a: i64x4, b: (), c:i64x4, d: Unhab, e: ((),()), f: UnionI64x4 }
3434

35-
// CHECK: define <4 x i64> @test_UnionI64x4_(<4 x i64> %arg0)
35+
// CHECK: define void @test_UnionI64x4_(<4 x i64>* {{.*}} %arg0)
3636
#[no_mangle]
37-
pub extern fn test_UnionI64x4_(_: UnionI64x4_) -> UnionI64x4_ { loop {} }
37+
pub fn test_UnionI64x4_(_: UnionI64x4_) { loop {} }
3838

3939
pub union UnionI64x4I64{ a: i64x4, b: i64 }
4040

@@ -53,19 +53,19 @@ pub union UnionF32{a:f32}
5353

5454
// CHECK: define float @test_UnionF32(float %arg0)
5555
#[no_mangle]
56-
pub extern fn test_UnionF32(_: UnionF32) -> UnionF32 { loop {} }
56+
pub fn test_UnionF32(_: UnionF32) -> UnionF32 { loop {} }
5757

5858
pub union UnionF32F32{a:f32, b:f32}
5959

6060
// CHECK: define float @test_UnionF32F32(float %arg0)
6161
#[no_mangle]
62-
pub extern fn test_UnionF32F32(_: UnionF32F32) -> UnionF32F32 { loop {} }
62+
pub fn test_UnionF32F32(_: UnionF32F32) -> UnionF32F32 { loop {} }
6363

6464
pub union UnionF32U32{a:f32, b:u32}
6565

6666
// CHECK: define i32 @test_UnionF32U32(i32)
6767
#[no_mangle]
68-
pub extern fn test_UnionF32U32(_: UnionF32U32) -> UnionF32U32 { loop {} }
68+
pub fn test_UnionF32U32(_: UnionF32U32) -> UnionF32U32 { loop {} }
6969

7070
pub union UnionU128{a:u128}
7171
// CHECK: define i128 @test_UnionU128(i128 %arg0)

0 commit comments

Comments
 (0)