#include <cstddef>
#include <iomanip>
#include <iostream>
#include <type_traits>
struct EB { };
struct S1 : EB {
EB eb;
int a;
char b;
};
struct S3 : S1 {
char c;
};
int main()
{
std::cout << sizeof(S1) << "\n";
std::cout << sizeof(S3) << "\n";
std::cout << std::boolalpha << std::is_standard_layout<S1>::value << "\n";
std::cout << std::boolalpha << std::is_standard_layout<S3>::value << "\n";
}
I2luY2x1ZGUgPGNzdGRkZWY+CiNpbmNsdWRlIDxpb21hbmlwPgojaW5jbHVkZSA8aW9zdHJlYW0+CiNpbmNsdWRlIDx0eXBlX3RyYWl0cz4KCnN0cnVjdCBFQiB7IH07CgpzdHJ1Y3QgUzEgOiBFQiB7CglFQiBlYjsKICAgIGludCBhOwogICAgY2hhciBiOwp9OwoKc3RydWN0IFMzIDogUzEgewogICAgY2hhciBjOwp9OwoKaW50IG1haW4oKQp7CglzdGQ6OmNvdXQgPDwgc2l6ZW9mKFMxKSA8PCAiXG4iOwoJc3RkOjpjb3V0IDw8IHNpemVvZihTMykgPDwgIlxuIjsKCXN0ZDo6Y291dCA8PCBzdGQ6OmJvb2xhbHBoYSA8PCBzdGQ6OmlzX3N0YW5kYXJkX2xheW91dDxTMT46OnZhbHVlIDw8ICJcbiI7CglzdGQ6OmNvdXQgPDwgc3RkOjpib29sYWxwaGEgPDwgc3RkOjppc19zdGFuZGFyZF9sYXlvdXQ8UzM+Ojp2YWx1ZSA8PCAiXG4iOwp9