repo.or.cz
/
llvm
/
msp430.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PPC::B and PPC::BCC's target operand may be an immediate.
[llvm/msp430.git]
/
test
/
FrontendC
/
2002-04-07-SwitchStmt.c
blob
79632c9eb8adf4bdea20a9723477c2a9b12975ea
1
// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null
2
3
int
printf
(
const char
*, ...);
4
int
foo
();
5
6
int
main
() {
7
while
(
foo
()) {
8
switch
(
foo
()) {
9
case
0
:
10
case
1
:
11
case
2
:
12
case
3
:
13
printf
(
"3"
);
14
case
4
:
printf
(
"4"
);
15
case
5
:
16
case
6
:
17
default
:
18
break
;
19
}
20
}
21
return
0
;
22
}