t_1_038.cpp 962 B

12345678910111213141516171819202122232425262728293031323334353637
  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. // make sure newlines inside of macro invocations get accounted for correctly
  9. #define BAZ(T, E) T E
  10. struct foo
  11. {
  12. BAZ
  13. (bool,
  14. value = true
  15. );
  16. };
  17. struct bar {};
  18. //R #line 14 "t_1_038.cpp"
  19. //R struct foo
  20. //R {
  21. //R bool value = true;
  22. //R #line 20 "t_1_038.cpp"
  23. //R };
  24. //R
  25. //R struct bar {};
  26. //H 10: t_1_038.cpp(12): #define
  27. //H 08: t_1_038.cpp(12): BAZ(T, E)=T E
  28. //H 00: t_1_038.cpp(16): BAZ(bool, value = true ), [t_1_038.cpp(12): BAZ(T, E)=T E]
  29. //H 02: bool value = true
  30. //H 03: bool value = true