summaryrefslogtreecommitdiff
path: root/Tests/ObjectLibrary/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/ObjectLibrary/main.c')
-rw-r--r--Tests/ObjectLibrary/main.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/Tests/ObjectLibrary/main.c b/Tests/ObjectLibrary/main.c
new file mode 100644
index 000000000..6819f1c6d
--- /dev/null
+++ b/Tests/ObjectLibrary/main.c
@@ -0,0 +1,16 @@
+#if defined(_WIN32) && defined(SHARED_C)
+# define IMPORT_C __declspec(dllimport)
+#else
+# define IMPORT_C
+#endif
+extern IMPORT_C int b1(void);
+extern IMPORT_C int b2(void);
+extern IMPORT_C int c(void);
+int main(void)
+{
+ return 0
+ + c()
+ + b1()
+ + b2()
+ ;
+}