Checkin old testcase for switch statement. For now we just decimate them
to conditional branches. llvm-svn: 2159
This commit is contained in:
parent
265704cf6b
commit
c446f9c414
|
@ -0,0 +1,20 @@
|
|||
int printf(const char *, ...);
|
||||
int foo();
|
||||
|
||||
int main() {
|
||||
while (foo()) {
|
||||
switch (foo()) {
|
||||
case 0:
|
||||
case 1:
|
||||
case 2:
|
||||
case 3:
|
||||
printf("3");
|
||||
case 4: printf("4");
|
||||
case 5:
|
||||
case 6:
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue