summaryrefslogtreecommitdiff
path: root/tests/if3-k.expout
diff options
context:
space:
mode:
Diffstat (limited to 'tests/if3-k.expout')
-rw-r--r--tests/if3-k.expout21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/if3-k.expout b/tests/if3-k.expout
new file mode 100644
index 000000000000..e0e23867de64
--- /dev/null
+++ b/tests/if3-k.expout
@@ -0,0 +1,21 @@
+/* Copyright 2004, 2008 Bob Proulx <bob@proulx.com>
+Distributed under the two-clause BSD licence;
+see the COPYING file for details. */
+
+#include <stdio.h>
+#include <stdlib.h>
+
+/* This code is passed through. "#if 0 else" */
+
+/* This code is passed through. "#if 1 then" */
+
+#if ! defined(BAR)
+int foo() { return 0; }
+#else
+#error BAR defined
+#endif
+
+int main()
+{
+ foo();
+}