fuhsnn / slimcc

C11 compiler with GNU extensions for x86-64 Linux, working towards C23
MIT License
34 stars 4 forks source link

Unnamed bit-field members should not affect total alignment #17

Closed fuhsnn closed 11 months ago

fuhsnn commented 11 months ago
    struct S { long :1; short a;};
    _Alignof(struct S); // expect 2, got 8