1 // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
4 * BTF-to-C dumper tests for struct packing determination.
6 * Copyright (c) 2019 Facebook
8 /* ----- START-EXPECTED-OUTPUT ----- */
9 struct packed_trailing_space {
12 } __attribute__((packed));
14 struct non_packed_trailing_space {
19 struct packed_fields {
22 } __attribute__((packed));
24 struct non_packed_fields {
29 struct nested_packed {
36 } __attribute__((packed)) e;
37 } __attribute__((packed));
39 union union_is_never_packed {
45 union union_does_not_need_packing {
49 } __attribute__((packed));
53 union jump_code_union {
58 } __attribute__((packed));
61 /*------ END-EXPECTED-OUTPUT ------ */
64 struct packed_trailing_space _1;
65 struct non_packed_trailing_space _2;
66 struct packed_fields _3;
67 struct non_packed_fields _4;
68 struct nested_packed _5;
69 union union_is_never_packed _6;
70 union union_does_not_need_packing _7;
71 union jump_code_union _8;