We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e294b9 commit ee835a7Copy full SHA for ee835a7
tests/ui/ptr_ops/ptr-write-bool-representation.rs
@@ -1,3 +1,10 @@
1
+//! Validates the correct behavior of writing a `bool` value using `std::ptr::write`.
2
+//!
3
+//! This test addresses historical concerns regarding the internal representation of `bool`
4
+//! (e.g., as `i1` in LLVM versus its byte-aligned memory layout) and checks that
5
+//! `ptr::write` correctly handles this type without issues, confirming its memory
6
+//! behavior is as expected.
7
+
8
//@ run-pass
9
10
use std::ptr;
0 commit comments