test_include_CXX.cxx 578 B

12345678910111213141516171819202122
  1. /*
  2. Copyright Kitware, Inc.
  3. Distributed under the OSI-approved BSD 3-Clause License.
  4. See accompanying file Copyright.txt for details.
  5. */
  6. #include <string>
  7. #if defined(_MSC_VER) && defined(NDEBUG)
  8. // Use C++ runtime to avoid linker warning:
  9. // warning LNK4089: all references to 'MSVCP71.dll' discarded by /OPT:REF
  10. std::string test_include_CXX_use_stl_string;
  11. #endif
  12. /* Test KWIML header inclusion after above system headers. */
  13. #include "test.h"
  14. #include "../include/kwiml/abi.h"
  15. #include "../include/kwiml/int.h"
  16. extern "C" int test_include_CXX(void)
  17. {
  18. return 1;
  19. }