We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecf2390 commit f297f32Copy full SHA for f297f32
tests/run-make/extern-fn-explicit-align/test.rs
@@ -3,28 +3,24 @@
3
use std::ffi::{CStr, c_char};
4
use std::ptr::null_mut;
5
6
-#[derive(Copy, Clone)]
7
#[repr(C)]
8
pub struct BoolAndU32 {
9
pub a: bool,
10
pub b: u32,
11
}
12
13
14
15
#[repr(align(16))]
16
pub struct TwoU64s {
17
pub a: u64,
18
pub b: u64,
19
20
21
22
23
pub struct WrappedU64s {
24
pub a: TwoU64s
25
26
27
28
29
// Even though requesting align 1 can never change the alignment, it still affects the ABI
30
// on some platforms like i686-windows.
@@ -34,7 +30,6 @@ pub struct LowerAlign {
34
35
31
36
32
37
38
33
39
#[repr(packed)]
40
pub struct Packed {
0 commit comments