aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/gna/issue1817/repro2.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/testsuite/gna/issue1817/repro2.c b/testsuite/gna/issue1817/repro2.c
new file mode 100644
index 000000000..bc9c39b5c
--- /dev/null
+++ b/testsuite/gna/issue1817/repro2.c
@@ -0,0 +1,24 @@
+#include <stdio.h>
+
+#ifdef SECOND
+ printf ("second\n");
+}
+
+int main(void)
+{
+ func();
+}
+#endif
+#ifdef FIRST
+int func(void)
+{
+ printf ("first\n");
+#endif
+
+#if !defined(FIRST) && !defined(SECOND)
+#define FIRST
+#include "repro2.c"
+#undef FIRST
+#define SECOND
+#include "repro2.c"
+#endif