Coccinelle release 0.2.5-rc8
[bpt/coccinelle.git] / tests / return.cocci
CommitLineData
34e49164
C
1// not needed with 'return implicit' feature
2// @@
3// statement S;
4// @@
5//
6// foo(...) {
7// ...
8// (
9// + before_return();
10// return;
11// |
12// S
13// + before_return();
14// )
15// }
16
17
18@@
19statement S;
20@@
21
22foo(...) {
23 ...
24+ before_return();
25 return;
26}