t_1_005.cpp 849 B

123456789101112131415161718192021222324252627
  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 order.
  9. #define A() B
  10. #define B(x) x
  11. //R #line 16 "t_1_005.cpp"
  12. A()(123) //R 123
  13. //H 10: t_1_005.cpp(12): #define
  14. //H 08: t_1_005.cpp(12): A()=B
  15. //H 10: t_1_005.cpp(13): #define
  16. //H 08: t_1_005.cpp(13): B(x)=x
  17. //H 00: t_1_005.cpp(16): A(), [t_1_005.cpp(12): A()=B]
  18. //H 02: B
  19. //H 03: B
  20. //H 00: t_1_005.cpp(12): B(123), [t_1_005.cpp(13): B(x)=x]
  21. //H 02: 123
  22. //H 03: 123