t_1_025.cpp 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  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, if macro expansion eats up follow up tokens under certain conditions
  9. // (which it shouldn't).
  10. #define SCAN(x) x
  11. #define BUG BUG_2
  12. #define BUG_2
  13. //R #line 19 "t_1_025.cpp"
  14. SCAN(BUG) 1 2 3 4 5 //R 1 2 3 4 5
  15. //H 10: t_1_025.cpp(13): #define
  16. //H 08: t_1_025.cpp(13): SCAN(x)=x
  17. //H 10: t_1_025.cpp(15): #define
  18. //H 08: t_1_025.cpp(15): BUG=BUG_2
  19. //H 10: t_1_025.cpp(16): #define
  20. //H 08: t_1_025.cpp(16): BUG_2=
  21. //H 00: t_1_025.cpp(19): SCAN(BUG), [t_1_025.cpp(13): SCAN(x)=x]
  22. //H 01: t_1_025.cpp(15): BUG
  23. //H 02: BUG_2
  24. //H 01: t_1_025.cpp(16): BUG_2
  25. //H 02:
  26. //H 03: _
  27. //H 03: _
  28. //H 02:
  29. //H 03: _