#include <stdio.h>
#include <stdint.h>
struct foo {
int a;
int b;
};
int
main(int argc, char * argv[])
{
struct foo f;
f.a = 0x12345678;
int *pa = &f.a;
long l = *(long *)pa;
int i = l;
return (0);
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRpbnQuaD4KCnN0cnVjdCBmb28gewogICAgaW50IGE7CiAgICBpbnQgYjsKfTsKCmludAptYWluKGludCBhcmdjLCBjaGFyICogYXJndltdKQp7CiAgICBzdHJ1Y3QgZm9vIGY7CiAgICBmLmEgPSAweDEyMzQ1Njc4OwoKICAgIGludCAqcGEgPSAmZi5hOwogICAgbG9uZyBsID0gKihsb25nICopcGE7CiAgICBpbnQgaSA9IGw7CgogICAgcHJpbnRmKCJmLmE6XHQweCUweFxuIiwgZi5hKTsKICAgIHByaW50ZigibDpcdDB4JTBseFxuIiwgbCk7CiAgICBwcmludGYoImk6XHQweCUweFxuIiwgaSk7CiAgICAKCiAgICByZXR1cm4gKDApOwp9