HCoop
/
bpt
/
coccinelle.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Coccinelle release 1.0.0-rc4
[bpt/coccinelle.git]
/
tests
/
exitp.cocci
diff --git a/tests/exitp.cocci
b/tests/exitp.cocci
new file mode 100644
(file)
index 0000000..
542f11f
--- /dev/null
+++ b/
tests/exitp.cocci
@@ -0,0
+1,21
@@
+@r@
+identifier x;
+@@
+
+-f(x);
++g(x);
+
+@script:python@
+x << r.x;
+@@
+
+if ("%s" % x) == "done":
+ cocci.exit()
+
+@@
+identifier x;
+@@
+
+g(x
++ ,y
+ );