#include <stdio.h>
typedef enum __attribute__((packed)) {
STATE_IDLE = 0,
STATE_RUN,
} State_t;
typedef struct __attribute__((packed)) {
State_t State;
int CB;
} App1;
typedef struct __attribute__((packed)) {
int CB;
State_t State;
} App2;
int main() {
printf("%zu, %zu\n", sizeof(App1
), sizeof(App2
)); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp0eXBlZGVmIGVudW0gX19hdHRyaWJ1dGVfXygocGFja2VkKSkgewogICAgU1RBVEVfSURMRSA9IDAsCiAgICBTVEFURV9SVU4sCn0gU3RhdGVfdDsKCnR5cGVkZWYgc3RydWN0IF9fYXR0cmlidXRlX18oKHBhY2tlZCkpIHsKICAgIFN0YXRlX3QgU3RhdGU7CiAgICBpbnQgQ0I7Cn0gQXBwMTsKCnR5cGVkZWYgc3RydWN0IF9fYXR0cmlidXRlX18oKHBhY2tlZCkpIHsKICAgIGludCBDQjsKICAgIFN0YXRlX3QgU3RhdGU7Cn0gQXBwMjsKCmludCBtYWluKCkgewoJcHJpbnRmKCIlenUsICV6dVxuIiwgc2l6ZW9mKEFwcDEpLCBzaXplb2YoQXBwMikpOwoJcmV0dXJuIDA7Cn0=