cstdbool.pass.cpp 735 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. // test <cstdbool>
  9. #include <cstdbool>
  10. #include "test_macros.h"
  11. #ifndef __bool_true_false_are_defined
  12. #error __bool_true_false_are_defined not defined
  13. #endif
  14. #ifdef bool
  15. #error bool should not be defined
  16. #endif
  17. #ifdef true
  18. #error true should not be defined
  19. #endif
  20. #ifdef false
  21. #error false should not be defined
  22. #endif
  23. int main(int, char**)
  24. {
  25. return 0;
  26. }