t_9_007.cpp 778 B

1234567891011121314151617181920
  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. // Test error reporting during redefinition of 'defined'
  9. //E t_9_007.cpp(13): warning: this predefined name may not be redefined: defined
  10. #define defined 1 // undefined in C++ (16.8/3), error in C99 (6.10.8/4)
  11. #if defined // error
  12. <error>
  13. #endif
  14. //H 10: t_9_007.cpp(13): #define
  15. //H 18: boost::wave::macro_handling_exception