
type X {
    int x;
    int y;
}

main {
    X A[];
    X mem;
    mem.x = 1;
    mem.y = 2;
    A[0] = mem;


    X othermem;
    // Parser doesn't support this yet.
    othermem = A[f()];
}


(int r) f () {
  r = 0;
}


type X {
    int x;
    int y;
}

main {
    X A[];
    X mem;
    mem.x = 1;
    mem.y = 2;
    A[0] = mem;


    X othermem;
    othermem = A[f()];
}


(int r) f () {
  r = 0;
}

Fix refcount scavenging for structs, fixing test 388
Fix refcount scavenging for structs, fixing test 388

git-svn-id: 47705994653588c662f4ea400dfe88107361c0e2@8596 dc4e9af1-7f46-4ead-bba6-71afc04862de
