File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed
tests/run-make/extern-fn-explicit-align Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change 33use std:: ffi:: { CStr , c_char} ;
44use std:: ptr:: null_mut;
55
6- #[ derive( Copy , Clone ) ]
76#[ repr( C ) ]
87pub struct BoolAndU32 {
98 pub a : bool ,
109 pub b : u32 ,
1110}
1211
13- #[ derive( Copy , Clone ) ]
1412#[ repr( C ) ]
1513#[ repr( align( 16 ) ) ]
1614pub struct TwoU64s {
1715 pub a : u64 ,
1816 pub b : u64 ,
1917}
2018
21- #[ derive( Copy , Clone ) ]
2219#[ repr( C ) ]
2320pub struct WrappedU64s {
2421 pub a : TwoU64s
2522}
2623
27- #[ derive( Copy , Clone ) ]
2824#[ repr( C ) ]
2925// Even though requesting align 1 can never change the alignment, it still affects the ABI
3026// on some platforms like i686-windows.
@@ -34,7 +30,6 @@ pub struct LowerAlign {
3430 pub b : u64 ,
3531}
3632
37- #[ derive( Copy , Clone ) ]
3833#[ repr( C ) ]
3934#[ repr( packed) ]
4035pub struct Packed {
You can’t perform that action at this time.
0 commit comments