about summary refs log tree commit diff
path: root/tests/ui/ptr_ops/ptr-write-bool-representation.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/ptr_ops/ptr-write-bool-representation.rs')
-rw-r--r--tests/ui/ptr_ops/ptr-write-bool-representation.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/ptr_ops/ptr-write-bool-representation.rs b/tests/ui/ptr_ops/ptr-write-bool-representation.rs
index 4eb25329223..3dfc3e51ab2 100644
--- a/tests/ui/ptr_ops/ptr-write-bool-representation.rs
+++ b/tests/ui/ptr_ops/ptr-write-bool-representation.rs
@@ -1,3 +1,10 @@
+//! Validates the correct behavior of writing a `bool` value using `std::ptr::write`.
+//!
+//! This test addresses historical concerns regarding the internal representation of `bool`
+//! (e.g., as `i1` in LLVM versus its byte-aligned memory layout) and checks that
+//! `ptr::write` correctly handles this type without issues, confirming its memory
+//! behavior is as expected.
+
 //@ run-pass
 
 use std::ptr;