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

Function signed_comparison_emits_signed_ops

tests/integration/ir_generation.rs:127–133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125#[test]
126fn mixed_signed_unsigned_ops_both_emitted() {
127 let source = r#"main: () -> i32 {
128 signed_val: i32 = 10 / 2
129 ua: u32 = 5
130 ub: u32 = 10
131 unsigned_val: u32 = ua / ub
132 signed_cmp: bool = 5 < 10
133 unsigned_cmp: bool = ua < ub
134 return signed_val
135}"#;
136 let result = compile_ok(source);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected