Coccinelle release 1.0.0-rc4
[bpt/coccinelle.git] / tests / smallfn.c
diff --git a/tests/smallfn.c b/tests/smallfn.c
new file mode 100644 (file)
index 0000000..201e37b
--- /dev/null
@@ -0,0 +1,30 @@
+int main () {
+  if (y) {
+    one();
+  }
+  else {
+    two();
+  }
+ while (y) {
+    one();
+  }
+ do {
+    one();
+ } while(y);
+ switch (y) {
+ case 12:one();
+ case 27:two();
+  }
+{
+    one();
+  }
+}
+
+int main () {
+  if (y) {
+    one();
+  }
+  else {
+    two();
+      }
+}