summaryrefslogtreecommitdiff
path: root/Tests/ObjectLibrary/mainAB.c
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/ObjectLibrary/mainAB.c')
-rw-r--r--Tests/ObjectLibrary/mainAB.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/Tests/ObjectLibrary/mainAB.c b/Tests/ObjectLibrary/mainAB.c
new file mode 100644
index 000000000..556898b83
--- /dev/null
+++ b/Tests/ObjectLibrary/mainAB.c
@@ -0,0 +1,22 @@
+#if defined(_WIN32) && defined(SHARED_B)
+# define IMPORT_B __declspec(dllimport)
+#else
+# define IMPORT_B
+#endif
+extern IMPORT_B int b1(void);
+extern IMPORT_B int b2(void);
+#ifndef NO_A
+extern int a1(void);
+extern int a2(void);
+#endif
+int main(void)
+{
+ return 0
+#ifndef NO_A
+ + a1()
+ + a2()
+#endif
+ + b1()
+ + b2()
+ ;
+}