[clang] [Clang] Fix atomic boolean compound assignment (#33210) (PR #178220)
Yanzuo Liu via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 27 09:52:13 PST 2026
================
@@ -0,0 +1,33 @@
+// RUN: %clang_cc1 -emit-llvm -o - %s | FileCheck %s
+
+// When performing compound assignment on atomic_bool, ensure that we
+// correctly handle the conversion from integer to boolean, by comparing
+// with zero rather than truncating.
+
+#include <stdatomic.h>
+#include <stdbool.h>
----------------
zwuis wrote:
Do not `#include` files outside test folder. You can see other tests in the same folder.
https://github.com/llvm/llvm-project/pull/178220
More information about the cfe-commits
mailing list