mirror of
https://github.com/exoticorn/curlywas.git
synced 2026-11-13 19:17:19 +01:00
fix let lazy/inline chains re-using the same variable
This commit is contained in:
1 parent
1e746be750
commit
a52fe53a01
2 files changed
+16
-5
No files matched your search
@@ -0,0 +1,8 @@
|
||||
// simple test to see whether lazy/inline chains with the same variable compile correctly
|
||||
|
||||
fn xorshift(x: i32) -> i32 {
|
||||
let lazy x = x ^ (x << 13);
|
||||
let lazy x = x ^ (x #>> 17);
|
||||
let inline x = x ^ (x << 5);
|
||||
x
|
||||
}
|
||||
Reference in new issue
Block a user