summaryrefslogtreecommitdiffstats
path: root/Utilities/KWIML/test/test_ABI_CXX.cxx
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2011-11-15 19:39:12 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2011-11-15 19:39:12 (GMT)
commit6ac35e5cb3538c40bbfa662c6485684c26c7297d (patch)
treead8a9ed99bbb522c0d96f6f4d342056815c0dc13 /Utilities/KWIML/test/test_ABI_CXX.cxx
parentc616f46fc56ae1433b6dcc54270b652f99fb7904 (diff)
parent5be0e92218f4f82766389d7c8bb3193d98a09a87 (diff)
downloadCMake-6ac35e5cb3538c40bbfa662c6485684c26c7297d.zip
CMake-6ac35e5cb3538c40bbfa662c6485684c26c7297d.tar.gz
CMake-6ac35e5cb3538c40bbfa662c6485684c26c7297d.tar.bz2
Merge topic 'import-KWIML'
5be0e92 Merge branch 'upstream-kwiml' into import-KWIML a8f6159 KWIML: Create test output dir for Xcode 33fff24 KWIML: No INT_SCN*8 on Intel for Windows bcc06d4 KWIML: No INT_SCN*8 on SunPro compiler 6d12ab3 KWIML: Suppress printf/scanf format warnings in test 553acec KWIML: Avoid redefining _CRT_SECURE_NO_DEPRECATE in test.h 93cebca Configure KWIML inside CMake as cmIML b2975ad Merge branch 'upstream-kwiml' into import-KWIML 831bade KWIML: The Kitware Information Macro Library
Diffstat (limited to 'Utilities/KWIML/test/test_ABI_CXX.cxx')
-rw-r--r--Utilities/KWIML/test/test_ABI_CXX.cxx22
1 files changed, 22 insertions, 0 deletions
diff --git a/Utilities/KWIML/test/test_ABI_CXX.cxx b/Utilities/KWIML/test/test_ABI_CXX.cxx
new file mode 100644
index 0000000..7ede20e
--- /dev/null
+++ b/Utilities/KWIML/test/test_ABI_CXX.cxx
@@ -0,0 +1,22 @@
+/*============================================================================
+ Kitware Information Macro Library
+ Copyright 2010-2011 Kitware, Inc.
+
+ Distributed under the OSI-approved BSD License (the "License");
+ see accompanying file Copyright.txt for details.
+
+ This software is distributed WITHOUT ANY WARRANTY; without even the
+ implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ See the License for more information.
+============================================================================*/
+#include "test.h"
+#include KWIML_HEADER(ABI.h)
+#include "test_ABI_endian.h"
+extern "C" int test_ABI_CXX(void)
+{
+ if(!test_ABI_endian())
+ {
+ return 0;
+ }
+ return 1;
+}