t_2_007.cpp 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. //O --c99
  9. // Tests correctness of macro expansion inside #pragma directives
  10. // Note: in C99 mode the STDC prefix in pragma's suppresses macro expansion
  11. #define PRAGMA_BODY preprocessed pragma body
  12. //R #line 19 "t_2_007.cpp"
  13. //R #pragma some pragma body
  14. #pragma some pragma body
  15. //R #line 22 "t_2_007.cpp"
  16. //R #pragma preprocessed pragma body
  17. #pragma PRAGMA_BODY
  18. //R #line 25 "t_2_007.cpp"
  19. //R #pragma STDC some C99 standard pragma body
  20. #pragma STDC some C99 standard pragma body
  21. //R #line 28 "t_2_007.cpp"
  22. //R #pragma STDC PRAGMA_BODY
  23. #pragma STDC PRAGMA_BODY
  24. //H 10: t_2_007.cpp(15): #define
  25. //H 08: t_2_007.cpp(15): PRAGMA_BODY=preprocessed pragma body
  26. //H 10: t_2_007.cpp(19): #pragma
  27. //H 10: t_2_007.cpp(22): #pragma
  28. //H 01: t_2_007.cpp(15): PRAGMA_BODY
  29. //H 02: preprocessed pragma body
  30. //H 03: preprocessed pragma body
  31. //H 10: t_2_007.cpp(25): #pragma
  32. //H 10: t_2_007.cpp(28): #pragma