fuhsnn / slimcc

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

`asm` block not consuming the ending `;` #80

Closed fuhsnn closed 2 months ago

fuhsnn commented 2 months ago
int main(void) {
  do asm ("");
  while(0);
}

got ^ expected 'while'

fuhsnn commented 2 months ago

fixed with https://github.com/fuhsnn/widcc/commit/b49dc220cade03a07558b8174f5f8f689a0e1c21