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

Function large_struct_argument_is_copied

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

Source from the content-addressed store, hash-verified

1856 a: Option<i32> = Some(40)
1857 b: Option<i64> = Some(2)
1858 total: i32 = 0
1859 match a {
1860 Some(v) -> {
1861 total = total + v
1862 }
1863 None -> {
1864 total = total + 0
1865 }
1866 }
1867 match b {
1868 Some(w) -> {
1869 total = total + w as i32
1870 }
1871 None -> {
1872 total = total + 0
1873 }
1874 }
1875 return total
1876}
1877"#,
1878 42,
1879 );
1880}
1881
1882#[test]
1883fn user_generic_enum_specializes() {

Callers

nothing calls this directly

Calls 1

assert_exitFunction · 0.85

Tested by

no test coverage detected