blob: 17f3b4fd4a49e96170a7e0a39d2eb7d30523c223 (
plain) (
blame)
1
2
3
4
5
6
|
namespace;
include rt;
// expect: x: is given away inside a loop that comes back around to it
fn take(.d p) { return p[0]; }
fn main() { let x = rt.new(1); let i = 0; d*x; while (i < 3) { take(x); i++; } return 0; }
|