t_1_017.cpp 822 B

12345678910111213141516171819202122232425262728293031
  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 macro expansion sequence and proper rescanning
  9. #define macro() end
  10. #define par() ()
  11. #define expr macro par par par()
  12. #define scan(x) x
  13. //R #line 22 "t_1_017.cpp"
  14. //R macro par par ()
  15. expr
  16. //R #line 25 "t_1_017.cpp"
  17. //R macro par ()
  18. scan(expr)
  19. //R #line 28 "t_1_017.cpp"
  20. //R macro ()
  21. scan(scan(expr))
  22. //R #line 31 "t_1_017.cpp"
  23. //R end
  24. scan(scan(scan(expr)))