concepts.version.pass.cpp 884 B

1234567891011121314151617181920212223242526272829303132333435
  1. //===----------------------------------------------------------------------===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. //
  9. // <concepts> feature macros
  10. /* Constant Value
  11. __cpp_lib_concepts 201806L
  12. */
  13. // XFAIL
  14. // #include <concepts>
  15. #include <cassert>
  16. #include "test_macros.h"
  17. int main(int, char**)
  18. {
  19. // ensure that the macros that are supposed to be defined in <concepts> are defined.
  20. /*
  21. #if !defined(__cpp_lib_fooby)
  22. # error "__cpp_lib_fooby is not defined"
  23. #elif __cpp_lib_fooby < 201606L
  24. # error "__cpp_lib_fooby has an invalid value"
  25. #endif
  26. */
  27. return 0;
  28. }