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

Nested loops are mangled #6

Open
kornelski opened this issue Mar 7, 2013 · 1 comment
Open

Nested loops are mangled #6

kornelski opened this issue Mar 7, 2013 · 1 comment

Comments

@kornelski
Copy link

void test()
{
    for(int j=0; j < 10; j++) {
        for(int i=0; i < 20; i++) {
        }
    }
}

is converted to

void test()
{
    { int j=0; for( ; i < 20; i++) {
        }
    } }
}
@mstorsjo
Copy link
Contributor

mstorsjo commented Mar 7, 2013

I can reproduce this, and I created a test case at mstorsjo@nested-for.

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