summaryrefslogtreecommitdiffstats
path: root/config/cmake_ext_mod/HDFCXXTests.cpp
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2015-08-20 17:03:29 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2015-08-20 17:03:29 (GMT)
commit1b2b0bd5a30cbc4227457abd08f563a8fd8c8b68 (patch)
treef3e820daa24477263f5fc3efd43bf459865f260b /config/cmake_ext_mod/HDFCXXTests.cpp
parent1436a07905193713568304dd00b26ca18e982e6f (diff)
downloadhdf5-1b2b0bd5a30cbc4227457abd08f563a8fd8c8b68.zip
hdf5-1b2b0bd5a30cbc4227457abd08f563a8fd8c8b68.tar.gz
hdf5-1b2b0bd5a30cbc4227457abd08f563a8fd8c8b68.tar.bz2
[svn-r27540] Replace svn:externals with hard copy of files
Diffstat (limited to 'config/cmake_ext_mod/HDFCXXTests.cpp')
-rw-r--r--config/cmake_ext_mod/HDFCXXTests.cpp56
1 files changed, 56 insertions, 0 deletions
diff --git a/config/cmake_ext_mod/HDFCXXTests.cpp b/config/cmake_ext_mod/HDFCXXTests.cpp
new file mode 100644
index 0000000..6b47421
--- /dev/null
+++ b/config/cmake_ext_mod/HDFCXXTests.cpp
@@ -0,0 +1,56 @@
+
+#ifdef OLD_HEADER_FILENAME
+
+#include <iostream>
+
+int main(void) { return 0; }
+
+#endif
+
+
+#ifdef HDF_NO_NAMESPACE
+
+namespace HDF {
+int fnord;
+}
+
+int main(void) {
+ using namespace HDF;
+ fnord = 37;
+ return 0;
+}
+
+#endif
+
+#ifdef HDF_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