Open reuk opened 7 years ago
Slightly more minimal example which still leaks:
package regression.java.util.Iterator;
import java.util.Iterator;
class DumbIterator implements Iterator {
private boolean p = true;
public boolean hasNext() {
return p;
}
public Object next() {
p = !p;
return null;
}
}
public class NoLoop_Pass {
public static void main(String[] args) {
((Iterator)(new DumbIterator())).next();
}
}
Updated the minimal test case.
I'm not sure if this is the minimal test case, but I think it's pretty close. On f5aa612 (tip of test-gen-support), the following test case results in a memory leak.
command-line:
truncated output: