diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2012-06-04 17:05:02 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2012-06-04 17:05:02 (GMT) |
commit | 7b1ea8aa2a75ef8e28c60e79fcba42b44c4e584a (patch) | |
tree | 96446a5912f352d549c2324e4b5735d3ddee663d /config/cmake/HDF5CXXTests.cpp | |
parent | 64fc9df55b7ae09b18ac159590cb2325d003be34 (diff) | |
download | hdf5-7b1ea8aa2a75ef8e28c60e79fcba42b44c4e584a.zip hdf5-7b1ea8aa2a75ef8e28c60e79fcba42b44c4e584a.tar.gz hdf5-7b1ea8aa2a75ef8e28c60e79fcba42b44c4e584a.tar.bz2 |
[svn-r22430] CMake and configure synchronization effort. CMake added most tests and options: DEBUGPKG not addressed.
Still needed: compiler wrapper scripts
Tested: local linux(cmake) and h5committest
Diffstat (limited to 'config/cmake/HDF5CXXTests.cpp')
-rw-r--r-- | config/cmake/HDF5CXXTests.cpp | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/config/cmake/HDF5CXXTests.cpp b/config/cmake/HDF5CXXTests.cpp new file mode 100644 index 0000000..7003cc8 --- /dev/null +++ b/config/cmake/HDF5CXXTests.cpp @@ -0,0 +1,56 @@ + +#ifdef OLD_HEADER_FILENAME + +#include <iostream> + +int main(void) { return 0; } + +#endif + + +#ifdef H5_NO_NAMESPACE + +namespace H5 { +int fnord; +} + +int main(void) { + using namespace H5; + fnord = 37; + return 0; +} + +#endif + +#ifdef H5_NO_STD + +#include <string> + +using namespace std; + +int main(void) { + string myString("testing namespace std"); + return 0; +} + +#endif + +#ifdef BOOL_NOTDEFINED +int main(void) { + bool flag; + return 0; +} + +#endif + +#ifdef NO_STATIC_CAST + +int main(void) { + float test_float; + int test_int; + test_float = 37.0; + test_int = static_cast <int> (test_float); + return 0; +} + +#endif |