Skip to content

Can't parse weird switch #7

Description

@adam-sse

The extractor crashes trying to parse this code (from How to Get Fired Using Switch Statements & Statement Expressions):

void print_stuff(int type){
        int i = 0;
        int r = 0;
        switch(type){
                for(i = 0; i < ({if(0){ case 1:r+=2; case 0:r+=3;}r;}); i++){
                        printf("i is %d\n", i);
                }
        }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions