t_2_015.cpp 867 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, whether #if works when the expression is surrounded by parenthesis
  9. #define WINVER 0x0500
  10. //R #line 17 "t_2_015.cpp"
  11. //R true
  12. #if(WINVER >= 0x0500)
  13. true
  14. #endif
  15. //H 10: t_2_015.cpp(12): #define
  16. //H 08: t_2_015.cpp(12): WINVER=0x0500
  17. //H 10: t_2_015.cpp(16): #if
  18. //H 01: t_2_015.cpp(12): WINVER
  19. //H 02: 0x0500
  20. //H 03: 0x0500
  21. //H 11: t_2_015.cpp(16): #if (WINVER >= 0x0500): 1
  22. //H 10: t_2_015.cpp(18): #endif