diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2013-08-09 14:28:12 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2013-08-09 14:28:12 +0000 |
commit | ba16c457a7c4936f78deadbf7da19fd53e85031d (patch) | |
tree | a96eec669132d221639d6a60563b67a732eec906 /ACE/tests/Compiler_Features_22_DLL.h | |
parent | ce3b61446ceda811f8f90c3a47f4def8190283fd (diff) | |
download | ATCD-ba16c457a7c4936f78deadbf7da19fd53e85031d.tar.gz |
Fri Aug 9 14:27:56 UTC 2013 Johnny Willemsen <jwillemsen@remedy.nl>
* tests/Compiler_Features_22_DLL.h:
* tests/Compiler_Features_22_DLL.cpp:
* tests/Compiler_Features_22_DLL_Export.h:
* tests/tests.mpc:
New test for template method specialization combined with
dllexport
Diffstat (limited to 'ACE/tests/Compiler_Features_22_DLL.h')
-rw-r--r-- | ACE/tests/Compiler_Features_22_DLL.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/ACE/tests/Compiler_Features_22_DLL.h b/ACE/tests/Compiler_Features_22_DLL.h new file mode 100644 index 00000000000..f9ba32fd298 --- /dev/null +++ b/ACE/tests/Compiler_Features_22_DLL.h @@ -0,0 +1,40 @@ + +//============================================================================= +/** + * @file Compiler_Features_22_DLL.h + * + * $Id$ + * + * Test DLL export with a template method specialization + */ +//============================================================================= + +#ifndef ACE_TESTS_COMPILER_FEATURES_22_DLL_H +#define ACE_TESTS_COMPILER_FEATURES_22_DLL_H + +#include "test_config.h" + +#include "Compiler_Features_22_DLL_Export.h" + +class A +{ +public: + +A () {}; +}; + +typedef A* A_ptr; + +template<typename T> inline bool is_nil (T x) +{ +return x == 0; +} + +template<> +bool +COMPILER_FEATURES_22_DLL_Export is_nil<> (A_ptr) +{ + return false; +} + +#endif /* ACE_TESTS_COMPILER_FEATURES_22_DLL_H */ |