Release coccinelle-0.1.8
[bpt/coccinelle.git] / tests / oddifdef.res
diff --git a/tests/oddifdef.res b/tests/oddifdef.res
new file mode 100644 (file)
index 0000000..1a21d98
--- /dev/null
@@ -0,0 +1,44 @@
+void one () {
+  if (errno != ENOENT 
+#ifdef ENOTDIR
+      && errno != ENOTDIR
+#endif
+    )
+    a = 5;
+
+#ifdef FOO
+  x = 0;
+#else
+  x = 0;
+#endif
+}
+
+void two() {
+#ifdef ENOTTY
+  if (errno == ENOTTY)
+    is_a_tty=0;
+  else
+#endif
+    a = 3;
+
+#ifdef FOO
+  x = 0;
+#else
+  x = 0;
+#endif
+}
+
+void three() {
+  if (x)
+    a = 3;
+#ifndef OPENSSL_NO_SSL2
+  else if (strcmp(*argv,"-ssl2") == 0)
+    meth=SSLv2_client_method();
+#endif
+
+#ifdef FOO
+  x = 0;
+#else
+  x = 0;
+#endif
+}