summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/AutoExportDll/hello2.c
diff options
context:
space:
mode:
authorYury Zhuravlev <stalkerg@gmail.com>2016-07-10 20:24:43 +0300
committerBrad King <brad.king@kitware.com>2016-07-11 09:41:04 -0400
commit9da725cb00d25c7d3f45e8ee8c943ec5241d6227 (patch)
treed8ac9317dc0b460557c119180fdd04d4bff0da55 /Tests/RunCMake/AutoExportDll/hello2.c
parent2005b960672d2d552585805ea398b02400a576b7 (diff)
downloadcmake-9da725cb00d25c7d3f45e8ee8c943ec5241d6227.tar.gz
Windows: Honor WINDOWS_EXPORT_ALL_SYMBOLS for executables with exports
For executables with ENABLE_EXPORTS set, export all symbols when instructed to do so by WINDOWS_EXPORT_ALL_SYMBOLS.
Diffstat (limited to 'Tests/RunCMake/AutoExportDll/hello2.c')
-rw-r--r--Tests/RunCMake/AutoExportDll/hello2.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/RunCMake/AutoExportDll/hello2.c b/Tests/RunCMake/AutoExportDll/hello2.c
new file mode 100644
index 0000000000..d4d6b72b18
--- /dev/null
+++ b/Tests/RunCMake/AutoExportDll/hello2.c
@@ -0,0 +1,8 @@
+#include <stdio.h>
+
+extern int own_auto_export_function(int i);
+
+void hello2()
+{
+ printf("hello exec:%i", own_auto_export_function(41));
+}