test_workarounds.h 963 B

1234567891011121314151617181920212223242526272829303132
  1. // -*- C++ -*-
  2. //===----------------------------------------------------------------------===//
  3. //
  4. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  5. // See https://llvm.org/LICENSE.txt for license information.
  6. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  7. //
  8. //===----------------------------------------------------------------------===//
  9. #ifndef SUPPORT_TEST_WORKAROUNDS_H
  10. #define SUPPORT_TEST_WORKAROUNDS_H
  11. #include "test_macros.h"
  12. #if defined(TEST_COMPILER_EDG)
  13. # define TEST_WORKAROUND_EDG_EXPLICIT_CONSTEXPR // VSO-424280
  14. #endif
  15. #if defined(TEST_COMPILER_C1XX)
  16. # define TEST_WORKAROUND_C1XX_BROKEN_IS_TRIVIALLY_COPYABLE // VSO-117743
  17. # ifndef _MSC_EXTENSIONS
  18. # define TEST_WORKAROUND_C1XX_BROKEN_ZA_CTOR_CHECK // VSO-119998
  19. # endif
  20. #endif
  21. #if defined(TEST_COMPILER_GCC)
  22. # if __GNUC__ < 9
  23. # define TEST_WORKAROUND_CONSTEXPR_IMPLIES_NOEXCEPT // GCC-87603
  24. # endif
  25. #endif
  26. #endif // SUPPORT_TEST_WORKAROUNDS_H