#include <iostream>
#include <type_traits>
struct MakePackable
{
};
struct A : MakePackable
{
int x1234;
short x56;
char x7;
};
struct B : A
{
char x8;
};
int main() {
std::cout << sizeof(A) << ' ' << sizeof(B) << '\n';
std::cout << std::is_pod<A>::value << ' ' << std::is_pod<B>::value << '\n';
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dHlwZV90cmFpdHM+CgpzdHJ1Y3QgTWFrZVBhY2thYmxlCnsKfTsKCnN0cnVjdCBBIDogTWFrZVBhY2thYmxlCnsKICAgIGludCAgIHgxMjM0OwogICAgc2hvcnQgeDU2OwogICAgY2hhciAgeDc7Cn07CiAKc3RydWN0IEIgOiBBCnsKICAgIGNoYXIgeDg7Cn07CiAKaW50IG1haW4oKSB7CglzdGQ6OmNvdXQgPDwgc2l6ZW9mKEEpIDw8ICcgJyA8PCBzaXplb2YoQikgPDwgJ1xuJzsKCQoJc3RkOjpjb3V0IDw8IHN0ZDo6aXNfcG9kPEE+Ojp2YWx1ZSA8PCAnICcgPDwgc3RkOjppc19wb2Q8Qj46OnZhbHVlIDw8ICdcbic7CgkKCXJldHVybiAwOwp9