Skip to content

Commit ee835a7

Browse files
committed
type-use-i1-versus-i8
1 parent 4e294b9 commit ee835a7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/ui/ptr_ops/ptr-write-bool-representation.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
18
//@ run-pass
29

310
use std::ptr;

0 commit comments

Comments
 (0)