test_include_CXX.cxx 960 B

12345678910111213141516171819202122232425262728
  1. /*============================================================================
  2. Kitware Information Macro Library
  3. Copyright 2010-2011 Kitware, Inc.
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #include <string>
  11. #if defined(_MSC_VER) && defined(NDEBUG)
  12. // Use C++ runtime to avoid linker warning:
  13. // warning LNK4089: all references to 'MSVCP71.dll' discarded by /OPT:REF
  14. std::string test_include_CXX_use_stl_string;
  15. #endif
  16. /* Test KWIML header inclusion after above system headers. */
  17. #include "test.h"
  18. #include KWIML_HEADER(ABI.h)
  19. #include KWIML_HEADER(INT.h)
  20. extern "C" int test_include_CXX(void)
  21. {
  22. return 1;
  23. }