t_9_018.cpp 812 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. // tests, whether macro redefinition does not crash anymore, even if the new
  9. // replacement list is shorter, than the initial one.
  10. //E t_9_018.cpp(15): warning: illegal macro redefinition: M1
  11. #define M1 1
  12. #define M1
  13. //H 10: t_9_018.cpp(14): #define
  14. //H 08: t_9_018.cpp(14): M1=1
  15. //H 10: t_9_018.cpp(15): #define
  16. //H 18: boost::wave::macro_handling_exception