9
3

t_9_009.cpp 926 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 for a problem wrt preprocessing tokens (preprocessing numbers)
  9. #define X() X_ ## 0R()
  10. #define X_0R() ...
  11. //R #line 16 "t_9_009.cpp"
  12. X() //R ...
  13. //H 10: t_9_009.cpp(12): #define
  14. //H 08: t_9_009.cpp(12): X()=X_ ## 0R()
  15. //H 10: t_9_009.cpp(13): #define
  16. //H 08: t_9_009.cpp(13): X_0R()=...
  17. //H 00: t_9_009.cpp(16): X(), [t_9_009.cpp(12): X()=X_ ## 0R()]
  18. //H 02: X_0R()
  19. //H 00: t_9_009.cpp(12): X_0R(), [t_9_009.cpp(13): X_0R()=...]
  20. //H 02: ...
  21. //H 03: ...
  22. //H 03: ...