summaryrefslogtreecommitdiff
path: root/Tests/ExportImport/Import/A/imp_testExe1.c
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/ExportImport/Import/A/imp_testExe1.c')
-rw-r--r--Tests/ExportImport/Import/A/imp_testExe1.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/Tests/ExportImport/Import/A/imp_testExe1.c b/Tests/ExportImport/Import/A/imp_testExe1.c
new file mode 100644
index 000000000..451998ab7
--- /dev/null
+++ b/Tests/ExportImport/Import/A/imp_testExe1.c
@@ -0,0 +1,25 @@
+extern int generated_by_testExe1();
+extern int generated_by_testExe3();
+extern int testLib2();
+extern int testLib3();
+extern int testLib4();
+extern int testLib4lib();
+extern int testLib5();
+extern int testLib6();
+extern int testLibCycleA1();
+
+/* Switch a symbol between debug and optimized builds to make sure the
+ proper library is found from the testLib4 link interface. */
+#ifdef EXE_DBG
+# define testLib4libcfg testLib4libdbg
+#else
+# define testLib4libcfg testLib4libopt
+#endif
+extern testLib4libcfg(void);
+
+int main()
+{
+ return (testLib2() + generated_by_testExe1() + testLib3() + testLib4()
+ + testLib5() + testLib6() + testLibCycleA1()
+ + generated_by_testExe3() + testLib4lib() + testLib4libcfg());
+}