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

Switch #41

Open
BenShen98 opened this issue Mar 21, 2019 · 1 comment
Open

Switch #41

BenShen98 opened this issue Mar 21, 2019 · 1 comment

Comments

@BenShen98
Copy link

Are we going to be test for code below? Or switch without any case in it?

    int a,branch;
    switch(branch){
        a=6; //dead code
        case 1:
        a=5;
        break;
    }
@johnwickerson
Copy link
Contributor

Wasn't planning to. But I might have to -- I need to find some code that your compilers can't handle, right? I don't want everybody's compilers passing every test!

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