commit | 7033a1462ed158fe7f81a85f5036bb8f91bc6717 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | Wed Mar 05 13:35:54 2025 -0800 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed Mar 05 13:35:54 2025 -0800 |
tree | 7d516db16f8a7426d223c40ed7def347e83a8489 | |
parent | d4145bde6214234d3ccb82f0bebc539b630a54ff [diff] | |
parent | a4bc8fd696a2f1f8fbb786a1157e19630fa7c559 [diff] |
Merge "Comment on the status of ATOMIC_VAR_INIT() in the POSIX test." into main
diff --git a/tests/headers/posix/stdatomic_h.c b/tests/headers/posix/stdatomic_h.c index 9f46e6a..270faae 100644 --- a/tests/headers/posix/stdatomic_h.c +++ b/tests/headers/posix/stdatomic_h.c
@@ -66,6 +66,9 @@ MACRO(ATOMIC_POINTER_LOCK_FREE); atomic_flag f = ATOMIC_FLAG_INIT; + + // ATOMIC_VAR_INIT() has been removed from C23, + // but not from POSIX 2024. atomic_int i = ATOMIC_VAR_INIT(123); i = kill_dependency(i);