summaryrefslogtreecommitdiffstats
path: root/tests/rust/layout_aligned_opaque.toml
blob: 1d416f155b8ca41b2d8b28ecc0ee42deeca12d4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
header = """
#define CBINDGEN_PACKED        __attribute__ ((packed))
#define CBINDGEN_ALIGNED(n)    __attribute__ ((aligned(n)))
"""

[layout]
# We do not define aligned_n.
packed = "CBINDGEN_PACKED"

[export]
include = [
	"PackedStruct",
	"PackedUnion",
	"OpaqueAlign1Union",
	"OpaqueAlign4Union",
	"OpaqueAlign16Union",
	"OpaqueAlign1Struct",
	"OpaqueAlign2Struct",
	"OpaqueAlign4Struct",
	"OpaqueAlign8Struct",
	"OpaqueAlign32Struct",
]