stdbool.c 313 B

1234567891011121314151617181920212223
  1. #if defined __STDC_VERSION__ && 199901L <= __STDC_VERSION__
  2. #include <stdbool.h>
  3. #include "test.h"
  4. void test_stdbool_h(void)
  5. {
  6. bool b;
  7. testing_header("stdbool.h");
  8. test_true(true);
  9. test_false(false);
  10. test_true(__bool_true_false_are_defined);
  11. testing_end();
  12. }
  13. #else
  14. void test_stdbool_h(void)
  15. {
  16. }
  17. #endif