pycparser icon indicating copy to clipboard operation
pycparser copied to clipboard

Empty case statements

Open ignatirabo opened this issue 10 months ago • 1 comments

Hello, similarly to https://github.com/eliben/pycparser/issues/528, PyCParser does not accept case statements that do not have statements while GCC does.

Example:

int main() {
  int i = 0;
  switch (i) {
    case 0:
      i = 1;
    case 1:
  }
  return i;
}

Is it possible for me to do a pull request with this feature?

Thank you in advance.

ignatirabo avatar Feb 13 '25 17:02 ignatirabo

Yes, please go ahead and create a PR

eliben avatar Feb 14 '25 19:02 eliben