pch_iface_test.cpp 461 B

12345678910111213141516
  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__)
  7. // No PCH expected but these compilers define macros below.
  8. #elif defined(__GNUC__) || defined(__clang__) || defined(_INTEL_COMPILER) || \
  9. defined(_MSC_VER)
  10. # error "Expected EXPECT_PCH for this compiler."
  11. #endif
  12. int main()
  13. {
  14. return 0;
  15. }