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

Function empty_byte_buffer_zero_fills

tests/integration/hll_conformance.rs:2097–2111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2095#[test]
2096fn inline_constructed_enum_as_call_argument() {
2097 // A freshly constructed enum passed directly as a call argument. 7 * 7 = 49.
2098 assert_exit(
2099 r#"
2100enum Shape {
2101 Circle(i32)
2102 Rect(i32, i32)
2103 Empty
2104}
2105
2106area: (s: Shape) -> i32 {
2107 match s {
2108 Circle(r) -> {
2109 return r * r
2110 }
2111 Rect(w, h) -> {
2112 return w * h
2113 }
2114 Empty -> {

Callers

nothing calls this directly

Calls 1

assert_exitFunction · 0.85

Tested by

no test coverage detected