t_2_014.cpp 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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 alternative tokens are interpreted inside of conditional
  9. // expressions
  10. //R #line 16 "t_2_014.cpp"
  11. //R true
  12. #if compl 1
  13. true
  14. #else
  15. false
  16. #endif
  17. //R #line 26 "t_2_014.cpp"
  18. //R true
  19. #if not 1
  20. false
  21. #else
  22. true
  23. #endif
  24. //R #line 32 "t_2_014.cpp"
  25. //R true
  26. #if 1 or 2
  27. true
  28. #else
  29. false
  30. #endif
  31. //R #line 40 "t_2_014.cpp"
  32. //R true
  33. #if 1 and 2
  34. true
  35. #else
  36. false
  37. #endif
  38. //R #line 50 "t_2_014.cpp"
  39. //R true
  40. #if not 1
  41. false
  42. #else
  43. true
  44. #endif
  45. //R #line 56 "t_2_014.cpp"
  46. //R true
  47. #if 1 xor 2
  48. true
  49. #else
  50. false
  51. #endif
  52. //R #line 66 "t_2_014.cpp"
  53. //R true
  54. #if 1 bitand 2
  55. false
  56. #else
  57. true
  58. #endif
  59. //R #line 72 "t_2_014.cpp"
  60. //R true
  61. #if 1 bitor 2
  62. true
  63. #else
  64. false
  65. #endif
  66. //R #line 80 "t_2_014.cpp"
  67. //R true
  68. #if 1 not_eq 2
  69. true
  70. #else
  71. false
  72. #endif
  73. //H 10: t_2_014.cpp(15): #if
  74. //H 11: t_2_014.cpp(15): #if compl 1: 1
  75. //H 10: t_2_014.cpp(17): #else
  76. //H 10: t_2_014.cpp(23): #if
  77. //H 11: t_2_014.cpp(23): #if not 1: 0
  78. //H 10: t_2_014.cpp(27): #endif
  79. //H 10: t_2_014.cpp(31): #if
  80. //H 11: t_2_014.cpp(31): #if 1 or 2: 1
  81. //H 10: t_2_014.cpp(33): #else
  82. //H 10: t_2_014.cpp(39): #if
  83. //H 11: t_2_014.cpp(39): #if 1 and 2: 1
  84. //H 10: t_2_014.cpp(41): #else
  85. //H 10: t_2_014.cpp(47): #if
  86. //H 11: t_2_014.cpp(47): #if not 1: 0
  87. //H 10: t_2_014.cpp(51): #endif
  88. //H 10: t_2_014.cpp(55): #if
  89. //H 11: t_2_014.cpp(55): #if 1 xor 2: 1
  90. //H 10: t_2_014.cpp(57): #else
  91. //H 10: t_2_014.cpp(63): #if
  92. //H 11: t_2_014.cpp(63): #if 1 bitand 2: 0
  93. //H 10: t_2_014.cpp(67): #endif
  94. //H 10: t_2_014.cpp(71): #if
  95. //H 11: t_2_014.cpp(71): #if 1 bitor 2: 1
  96. //H 10: t_2_014.cpp(73): #else
  97. //H 10: t_2_014.cpp(79): #if
  98. //H 11: t_2_014.cpp(79): #if 1 not_eq 2: 1
  99. //H 10: t_2_014.cpp(81): #else