#include <iostream>
#define CHECK_ALIGNMENT(arg) \
std::cout << #arg << ": " << (reinterpret_cast<long>(&arg) % sizeof(int)) << std::endl;
int main()
{
std::cout << "GCC version: " << __VERSION__ << std::endl;
char c = 'a';
unsigned char data[16];
CHECK_ALIGNMENT(c);
CHECK_ALIGNMENT(data[0]);
CHECK_ALIGNMENT(data[4]);
CHECK_ALIGNMENT(data[8]);
CHECK_ALIGNMENT(data[12]);
}
I2luY2x1ZGUgPGlvc3RyZWFtPgogCiAKI2RlZmluZSBDSEVDS19BTElHTk1FTlQoYXJnKSBcCiAgICBzdGQ6OmNvdXQgPDwgI2FyZyA8PCAiOiAiIDw8IChyZWludGVycHJldF9jYXN0PGxvbmc+KCZhcmcpICUgc2l6ZW9mKGludCkpIDw8IHN0ZDo6ZW5kbDsKIAogCmludCBtYWluKCkKewogICAgc3RkOjpjb3V0IDw8ICJHQ0MgdmVyc2lvbjogIiA8PCBfX1ZFUlNJT05fXyA8PCBzdGQ6OmVuZGw7CiAgICAKICAgIGNoYXIgYyA9ICdhJzsgICAgCiAgICB1bnNpZ25lZCBjaGFyIGRhdGFbMTZdOwogICAgQ0hFQ0tfQUxJR05NRU5UKGMpOwogICAgQ0hFQ0tfQUxJR05NRU5UKGRhdGFbMF0pOwogICAgQ0hFQ0tfQUxJR05NRU5UKGRhdGFbNF0pOwogICAgQ0hFQ0tfQUxJR05NRU5UKGRhdGFbOF0pOwogICAgQ0hFQ0tfQUxJR05NRU5UKGRhdGFbMTJdKTsKfQ==