repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fixed list difference algorithm
[hiphop-php.git]
/
hphp
/
hack
/
test
/
format
/
switch.php
blob
9dfbd402418eecf78d40df98697ddc58228b338d
1
<
?hh
2
3
function
f
(
$x
) {
4
switch
(
$x
) {
5
case
1
:
// hi
6
break
;
7
case
2
:
/* wat */
8
break
;
9
case
3
:
10
// sup
11
break
;
12
case
4
:
13
/* but really */
14
echo
"hi"
;
15
// FALLTHROUGH
16
default
:
// and yet
17
break
;
18
}
19
}