summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/GenerateExportHeader/exportheader_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/GenerateExportHeader/exportheader_test.cpp')
-rw-r--r--Tests/RunCMake/GenerateExportHeader/exportheader_test.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/Tests/RunCMake/GenerateExportHeader/exportheader_test.cpp b/Tests/RunCMake/GenerateExportHeader/exportheader_test.cpp
index 3a4e7dd..fc6cceb 100644
--- a/Tests/RunCMake/GenerateExportHeader/exportheader_test.cpp
+++ b/Tests/RunCMake/GenerateExportHeader/exportheader_test.cpp
@@ -66,6 +66,14 @@ int main()
#else
// l.libshared_excluded(); LINK ERROR (NOT WIN32 AND NOT CYGWIN)
#endif
+
+ use_int(l.data_exported);
+ use_int(l.data_not_exported);
+#if defined(_WIN32) || defined(__CYGWIN__)
+ use_int(l.data_excluded);
+#else
+// use_int(l.data_excluded); LINK ERROR (NOT WIN32 AND NOT CYGWIN)
+#endif
}
{
@@ -75,6 +83,10 @@ int main()
l.libshared_deprecated();
// l.libshared_not_exported(); LINK ERROR
// l.libshared_excluded(); LINK ERROR
+
+ use_int(l.data_exported);
+ // use_int(l.data_not_exported); LINK ERROR
+ // use_int(l.data_excluded); LINK ERROR
}
{
@@ -84,6 +96,10 @@ int main()
l.libshared_deprecated();
// l.libshared_not_exported(); LINK ERROR
// l.libshared_excluded(); LINK ERROR
+
+ use_int(l.data_exported);
+ // use_int(l.data_not_exported); LINK ERROR
+ // use_int(l.data_excluded); LINK ERROR
}
libshared_exported();
@@ -91,6 +107,10 @@ int main()
// libshared_not_exported(); LINK ERROR
// libshared_excluded(); LINK ERROR
+ use_int(data_exported);
+ // use_int(data_not_exported); LINK ERROR
+ // use_int(data_excluded); LINK ERROR
+
{
Libstatic l;
l.libstatic();