t_1_026.cpp 717 B

12345678910111213141516171819
  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 for non-unique parameter names
  9. //E t_1_026.cpp(13): error: duplicate macro parameter name: x
  10. #define MACRO(x, x) x
  11. // ^ ^ this is illegal
  12. MACRO(1, 2)
  13. //H 10: t_1_026.cpp(13): #define
  14. //H 18: boost::wave::macro_handling_exception