2 ms·
Try this in clang and gcc: #pragma pack(1) struct S { char c:1; char d:1 __attribute__((aligned(2))); char e:1; }; _Sta
by defen 4y ago
Try this in clang and gcc:
#pragma pack(1)
struct S {
char c:1;
char d:1 __attribute__((aligned(2)));
char e:1;
};
_Static_assert(sizeof(struct S) == 1, "wrong size");