File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
tests/run-make/core-ffi-typecheck-clang Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -100,12 +100,14 @@ cfg_if! {
100
100
if #[ cfg( all( target_arch = "aarch64" , target_abi = "ilp32" ) ) ] {
101
101
// FIXME: c_ptrdiff_t is not short enough on aarch64 ilp32, should be 4, defaulting to 8
102
102
const XFAIL_C_PTRDIFF_T_SIZE : usize = 4 ;
103
- pub const TEST_C_PTRDIFF_T_SIZE : ( ) = if size_of:: <ffi:: c_ptrdiff_t>( ) != XFAIL_C_PTRDIFF_T_SIZE {
103
+ pub const TEST_C_PTRDIFF_T_SIZE : ( ) =
104
+ if size_of:: <ffi:: c_ptrdiff_t>( ) != XFAIL_C_PTRDIFF_T_SIZE {
104
105
panic!( "wrong c_ssize_t size, target_arch: aarch64, target_abi: ilp32" ) ;
105
106
} ;
106
107
}
107
108
else {
108
- pub const TEST_C_PTRDIFF_T_SIZE : ( ) = if size_of:: <ffi:: c_ptrdiff_t>( ) != CLANG_C_PTRDIFF_T_SIZE {
109
+ pub const TEST_C_PTRDIFF_T_SIZE : ( ) =
110
+ if size_of:: <ffi:: c_ptrdiff_t>( ) != CLANG_C_PTRDIFF_T_SIZE {
109
111
panic!( "wrong c_size_t size" ) ;
110
112
} ;
111
113
}
You can’t perform that action at this time.
0 commit comments