t_1_033.cpp 1.3 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 the stringize operator in conjunction with varidic macros
  9. //O --variadics
  10. #define STR(...) #__VA_ARGS__
  11. //R #line 17 "t_1_033.cpp"
  12. STR(1, 2, 3) //R "1, 2, 3"
  13. STR(1,2,3) //R "1,2,3"
  14. STR(1 , 2 , 3) //R "1 , 2 , 3"
  15. STR( 1 , 2 , 3 ) //R "1 , 2 , 3"
  16. //H 10: t_1_033.cpp(14): #define
  17. //H 08: t_1_033.cpp(14): STR(...)=#__VA_ARGS__
  18. //H 00: t_1_033.cpp(17): STR(1, 2, 3), [t_1_033.cpp(14): STR(...)=#__VA_ARGS__]
  19. //H 02: "1, 2, 3"
  20. //H 03: "1, 2, 3"
  21. //H 00: t_1_033.cpp(18): STR(1,2,3), [t_1_033.cpp(14): STR(...)=#__VA_ARGS__]
  22. //H 02: "1,2,3"
  23. //H 03: "1,2,3"
  24. //H 00: t_1_033.cpp(19): STR(1 , 2 , 3), [t_1_033.cpp(14): STR(...)=#__VA_ARGS__]
  25. //H 02: "1 , 2 , 3"
  26. //H 03: "1 , 2 , 3"
  27. //H 00: t_1_033.cpp(20): STR( 1 , 2 , 3 ), [t_1_033.cpp(14): STR(...)=#__VA_ARGS__]
  28. //H 02: "1 , 2 , 3"
  29. //H 03: "1 , 2 , 3"