pch_iface_test.cpp 516 B

1234567891011121314151617
  1. #ifdef EXPECT_PCH
  2. // Verify that pch/pch.h was included via '-include ...' or equivalent.
  3. # ifndef PCH_PCH_H_INCLUDED
  4. # error "Expected PCH_PCH_H_INCLUDED."
  5. # endif
  6. #elif defined(__PGIC__) || defined(__ibmxl__) || defined(_CRAYC) || \
  7. defined(__FUJITSU)
  8. // No PCH expected but these compilers define macros below.
  9. #elif defined(__GNUC__) || defined(__clang__) || defined(_INTEL_COMPILER) || \
  10. defined(_MSC_VER)
  11. # error "Expected EXPECT_PCH for this compiler."
  12. #endif
  13. int main()
  14. {
  15. return 0;
  16. }