Coccinelle release 0.2.5-rc8
[bpt/coccinelle.git] / tests / switchtest.cocci
CommitLineData
fc1ad971
C
1@ switch_1
2@
3statement S_1,S_2;
4position p1,p2;
5@@
6switch (...)
7 {
8 case 2:@p1 S_1
9 case 4:@p2 S_2
10 }
11
12@
13script:python @ stmt_1 << switch_1.S_1;stmt_2 << switch_1.S_2;
14 p1 << switch_1.p1;p2 << switch_1.p2;
15 @@
16print "--- switch"
17print stmt_1
18print stmt_2