commit | 986afb9730306896fd8c93b10477f60dea9173d3 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Fri Nov 22 13:40:23 2024 +0000 |
committer | Elliott Hughes <enh@google.com> | Fri Nov 22 13:40:23 2024 +0000 |
tree | 358116d12e567bd4cb365beb6445470d6c23416d | |
parent | 2edc008aabb5be498182742a5cd26c0eef200b9e [diff] [blame] |
Update <stdbool.h> test for C23. Change-Id: Ic46ec91b20da4ddf32d139c5a54b6e9fbd40ca6b
diff --git a/tests/headers/posix/stdbool_h.c b/tests/headers/posix/stdbool_h.c index f891a73..830c33c 100644 --- a/tests/headers/posix/stdbool_h.c +++ b/tests/headers/posix/stdbool_h.c
@@ -31,10 +31,8 @@ #include "header_checks.h" static void stdbool_h() { -#if !defined(bool) -#error bool -#endif - MACRO_VALUE(true, 1); - MACRO_VALUE(false, 0); + TYPE(bool); + bool t = true; + bool f = false; MACRO_VALUE(__bool_true_false_are_defined, 1); }