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 3
3
use std:: ffi:: { CStr , c_char} ;
4
4
use std:: ptr:: null_mut;
5
5
6
- #[ derive( Copy , Clone ) ]
7
6
#[ repr( C ) ]
8
7
pub struct BoolAndU32 {
9
8
pub a : bool ,
10
9
pub b : u32 ,
11
10
}
12
11
13
- #[ derive( Copy , Clone ) ]
14
12
#[ repr( C ) ]
15
13
#[ repr( align( 16 ) ) ]
16
14
pub struct TwoU64s {
17
15
pub a : u64 ,
18
16
pub b : u64 ,
19
17
}
20
18
21
- #[ derive( Copy , Clone ) ]
22
19
#[ repr( C ) ]
23
20
pub struct WrappedU64s {
24
21
pub a : TwoU64s
25
22
}
26
23
27
- #[ derive( Copy , Clone ) ]
28
24
#[ repr( C ) ]
29
25
// Even though requesting align 1 can never change the alignment, it still affects the ABI
30
26
// on some platforms like i686-windows.
@@ -34,7 +30,6 @@ pub struct LowerAlign {
34
30
pub b : u64 ,
35
31
}
36
32
37
- #[ derive( Copy , Clone ) ]
38
33
#[ repr( C ) ]
39
34
#[ repr( packed) ]
40
35
pub struct Packed {
You can’t perform that action at this time.
0 commit comments