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
@@ -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
+ );