mirror of
https://github.com/exoticorn/curlywas.git
synced 2026-01-20 11:46:43 +01:00
8 lines
225 B
Plaintext
8 lines
225 B
Plaintext
// 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
|
|
} |