summaryrefslogtreecommitdiffstats
path: root/test cases/common/178 bothlibraries/main2.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test cases/common/178 bothlibraries/main2.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test cases/common/178 bothlibraries/main2.c b/test cases/common/178 bothlibraries/main2.c
new file mode 100644
index 0000000..e1f4bf8
--- /dev/null
+++ b/test cases/common/178 bothlibraries/main2.c
@@ -0,0 +1,9 @@
+#include "mylib.h"
+
+DO_IMPORT int func(void);
+DO_IMPORT int foo(void);
+DO_IMPORT int retval;
+
+int main(void) {
+ return func() + foo() == retval ? 0 : 1;
+}