Skip to content

Commit 225e257

Browse files
Merge pull request #1239 from reuk/virtual-function-unwinding
Add test showing infinite unwinding
2 parents 3c71a74 + a4fa59c commit 225e257

File tree

6 files changed

+27
-0
lines changed

6 files changed

+27
-0
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
interface Interface {
2+
boolean b();
3+
}
4+
5+
class Inner implements Interface {
6+
public boolean b() { return false; }
7+
}
8+
9+
class Outer implements Interface {
10+
private Interface inner;
11+
public Outer(Interface inner) { this.inner = inner; }
12+
public boolean b() { return !inner.b(); }
13+
}
14+
15+
public class Virtual {
16+
public static void main(String[] args) {
17+
assert new Outer(new Inner()).b();
18+
}
19+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
KNOWNBUG
2+
Virtual.class
3+
^EXIT=0$
4+
^SIGNAL=0$
5+
^VERIFICATION SUCCESSFUL$
6+
--
7+
--
8+
See diffblue/test-gen#845 for details

0 commit comments

Comments
 (0)