HCoop
/
bpt
/
coccinelle.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Coccinelle release-1.0.0-rc11
[bpt/coccinelle.git]
/
tests
/
switchtest.cocci
1
@ switch_1
2
@
3
statement S_1,S_2;
4
position p1,p2;
5
@@
6
switch (...)
7
{
8
case 2:@p1 S_1
9
case 4:@p2 S_2
10
}
11
12
@
13
script:python @ stmt_1 << switch_1.S_1;stmt_2 << switch_1.S_2;
14
p1 << switch_1.p1;p2 << switch_1.p2;
15
@@
16
print "--- switch"
17
print stmt_1
18
print stmt_2