mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
Checkin old testcase for switch statement. For now we just decimate them
to conditional branches. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2159 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
74550e1d06
commit
0bfaf3b7b5
20
test/CFrontend/2002-04-07-SwitchStmt.c
Normal file
20
test/CFrontend/2002-04-07-SwitchStmt.c
Normal file
@ -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
Block a user