summaryrefslogtreecommitdiffstats
path: root/Tests/Module/GenerateExportHeader/libstatic/libstatic.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2011-07-13 00:13:33 (GMT)
committerStephen Kelly <steveire@gmail.com>2011-08-07 16:33:47 (GMT)
commit30880707c094ac5c0edd85d0857afb6fbae55326 (patch)
tree837b58ac331f34eeefaced63c4c0a71ee59ef69e /Tests/Module/GenerateExportHeader/libstatic/libstatic.h
parent955d5133ab2f8bca5372e81af544cafdafc31994 (diff)
downloadCMake-30880707c094ac5c0edd85d0857afb6fbae55326.zip
CMake-30880707c094ac5c0edd85d0857afb6fbae55326.tar.gz
CMake-30880707c094ac5c0edd85d0857afb6fbae55326.tar.bz2
Add the GenerateExportMacro with unit tests.
Reviewed-by: Marcus D. Hanwell <marcus.hanwell@kitware.com>
Diffstat (limited to 'Tests/Module/GenerateExportHeader/libstatic/libstatic.h')
-rw-r--r--Tests/Module/GenerateExportHeader/libstatic/libstatic.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/Tests/Module/GenerateExportHeader/libstatic/libstatic.h b/Tests/Module/GenerateExportHeader/libstatic/libstatic.h
new file mode 100644
index 0000000..c6562ec
--- /dev/null
+++ b/Tests/Module/GenerateExportHeader/libstatic/libstatic.h
@@ -0,0 +1,54 @@
+
+#ifndef LIBSTATIC_H
+#define LIBSTATIC_H
+
+#include "libstatic_export.h"
+
+class LIBSTATIC_EXPORT Libstatic {
+public:
+ int libstatic() const;
+
+ int LIBSTATIC_EXPORT libstatic_exported() const;
+
+ int LIBSTATIC_DEPRECATED libstatic_deprecated() const;
+
+ int libstatic_not_exported() const;
+
+ int LIBSTATIC_NO_EXPORT libstatic_excluded() const;
+};
+
+class LibstaticNotExported {
+public:
+ int libstatic() const;
+
+ int LIBSTATIC_EXPORT libstatic_exported() const;
+
+ int LIBSTATIC_DEPRECATED libstatic_deprecated() const;
+
+ int libstatic_not_exported() const;
+
+ int LIBSTATIC_NO_EXPORT libstatic_excluded() const;
+};
+
+class LIBSTATIC_NO_EXPORT LibstaticExcluded {
+public:
+ int libstatic() const;
+
+ int LIBSTATIC_EXPORT libstatic_exported() const;
+
+ int LIBSTATIC_DEPRECATED libstatic_deprecated() const;
+
+ int libstatic_not_exported() const;
+
+ int LIBSTATIC_NO_EXPORT libstatic_excluded() const;
+};
+
+LIBSTATIC_EXPORT int libstatic_exported();
+
+LIBSTATIC_DEPRECATED int libstatic_deprecated();
+
+int libstatic_not_exported();
+
+int LIBSTATIC_NO_EXPORT libstatic_excluded();
+
+#endif