1 | struct B1 { |
---|---|
2 | char f1; |
3 | }; |
4 | |
5 | struct alignas(8) B2 { |
6 | char f2; |
7 | }; |
8 | |
9 | struct D : B1, B2 {}; |
10 | |
11 | D d3g; |
12 | |
13 | struct alignas(8) EmptyClassAlign8 { |
14 | } t; |
15 | |
16 | int main() {} |
17 |
1 | struct B1 { |
---|---|
2 | char f1; |
3 | }; |
4 | |
5 | struct alignas(8) B2 { |
6 | char f2; |
7 | }; |
8 | |
9 | struct D : B1, B2 {}; |
10 | |
11 | D d3g; |
12 | |
13 | struct alignas(8) EmptyClassAlign8 { |
14 | } t; |
15 | |
16 | int main() {} |
17 |