t_3_001.cpp 747 B

1234567891011121314151617
  1. /*=============================================================================
  2. Boost.Wave: A Standard compliant C++ preprocessor library
  3. http://www.boost.org/
  4. Copyright (c) 2001-2012 Hartmut Kaiser. Distributed under the Boost
  5. Software License, Version 1.0. (See accompanying file
  6. LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. =============================================================================*/
  8. // Tests, if a diagnostic is emitted, if a predefined macro is to be undefined.
  9. //R
  10. //E t_3_001.cpp(14): warning: #undef may not be used on this predefined name: __cplusplus
  11. #undef __cplusplus // should emit a warning
  12. //H 10: t_3_001.cpp(14): #undef
  13. //H 18: boost::wave::preprocess_exception