mirror of
https://github.com/exoticorn/curlywas.git
synced 2026-01-20 11:46:43 +01:00
fix let lazy/inline chains re-using the same variable
This commit is contained in:
8
test/xorshift.cwa
Normal file
8
test/xorshift.cwa
Normal file
@@ -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