commit | c404a8e034376a9d34b84cf14c11e5c22193b14e | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Fri Nov 22 16:39:51 2024 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Fri Nov 22 16:39:51 2024 +0000 |
tree | a1c78725fede42ba1428ca060d3110622b003104 | |
parent | c20dad55e842ac44f1b3276fb6a314f4bd15926d [diff] | |
parent | 986afb9730306896fd8c93b10477f60dea9173d3 [diff] |
Merge "Update <stdbool.h> test for C23." into main
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); }