slige/examples/transient_variable.slg

23 lines
228 B
Plaintext
Raw Normal View History

2025-01-03 01:15:05 +01:00
// mod std;
fn black_box(v: int) { }
fn add(a: int, b: int) -> int {
let s = a + b;
if false {}
s
}
fn main() {
let a = 5;
loop {
a = 3;
}
let b = a;
let c = b;
black_box(b);
}