blob: 4a23e51734f67c5c7cbf6a67a1c9fd32c6f1eced (
plain) (
blame)
1
2
3
4
5
6
|
namespace;
include rt;
struct node { node* next; int v; }
// expect: a: reassigning frees the old value, and the new value is part of it
fn main() { node* a = rt.new(node); a.next = rt.new(node); a = a.next; return 0; }
|