Skip to content
Snippets Groups Projects
Commit 0a1c166d authored by Russel Arbore's avatar Russel Arbore
Browse files

read chains cause issues

parent f2a3589a
No related branches found
No related tags found
1 merge request!119Read chains
Pipeline #201114 failed
......@@ -110,3 +110,12 @@ fn very_complex_antideps(x: usize) -> usize {
}
return arr4[w] + w;
}
#[entry]
fn read_chains(input : i32) -> i32 {
let arrs : (i32[2], i32[2]);
let sub = arrs.0;
sub[1] = input + 7;
arrs.0[1] = input + 3;
return sub[1] + arrs.0[1];
}
\ No newline at end of file
......@@ -23,6 +23,10 @@ fn main() {
let output = very_complex_antideps(3).await;
println!("{}", output);
assert_eq!(output, 144);
let output = read_chains(2).await;
println!("{}", output);
assert_eq!(output, 14);
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment