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