MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / memmove_dst_greater_than_src

Function memmove_dst_greater_than_src

tests/integration/platform_stdlib.rs:290–320  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

288 invalid := alloc.allocate(8, 3)
289 match invalid {
290 Ok(value) -> { return 6 }
291 Err(error) -> {
292 match error {
293 InvalidAlignment -> {}
294 OutOfMemory -> { return 7 }
295 SizeOverflow -> { return 8 }
296 }
297 }
298 }
299
300 max: u64 = 0
301 max -= 1
302 overflow := alloc.allocate(max, 8)
303 match overflow {
304 Ok(value) -> { return 13 }
305 Err(error) -> {
306 match error {
307 SizeOverflow -> {}
308 InvalidAlignment -> { return 14 }
309 OutOfMemory -> { return 15 }
310 }
311 }
312 }
313 return 0
314}
315"#,
316 );
317 assert_eq!(exit, Some(0));
318}
319
320// --- mem.hll ---
321
322#[test]
323fn mem_set_fills_buffer() {

Callers

nothing calls this directly

Calls 1

run_hllFunction · 0.70

Tested by

no test coverage detected