Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty case statements #563

Open
ignatirabo opened this issue Feb 13, 2025 · 1 comment
Open

Empty case statements #563

ignatirabo opened this issue Feb 13, 2025 · 1 comment

Comments

@ignatirabo
Copy link
Contributor

Hello, similarly to #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.

@eliben
Copy link
Owner

eliben commented Feb 14, 2025

Yes, please go ahead and create a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants