mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
- bitorder::read and bitorder::write may fail because of unaligned access #2734.
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
module std::core::bitorder @test;
|
||||
|
||||
fn void test_unaligned()
|
||||
{
|
||||
usz file_size;
|
||||
char[64] response;
|
||||
bitorder::write(file_size, response[9..], ULongLE);
|
||||
}
|
||||
|
||||
fn void test_read()
|
||||
{
|
||||
char[*] bytes = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 };
|
||||
|
||||
Reference in New Issue
Block a user