Skip to content

Instantly share code, notes, and snippets.

@yshui
Created August 10, 2015 21:45
Show Gist options
  • Save yshui/25e70d6f1e712e212397 to your computer and use it in GitHub Desktop.
Save yshui/25e70d6f1e712e212397 to your computer and use it in GitHub Desktop.
GCC fail
int k(int a) {
int b = a;
switch(a) {
case 1:
b+=1;break;
case 2:
b+=2;break;
case 3:
b+=3;break;
case 4:
b+=4;break;
case 5:
b+=5;break;
case 6:
b+=6;break;
default:
b+=7;
}
return b;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment