Skip to content

Add test showing infinite unwinding #1239

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 23, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
19 changes: 19 additions & 0 deletions regression/cbmc-java/virtual_function_unwinding/Virtual.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
interface Interface {
boolean b();
}

class Inner implements Interface {
public boolean b() { return false; }
}

class Outer implements Interface {
private Interface inner;
public Outer(Interface inner) { this.inner = inner; }
public boolean b() { return !inner.b(); }
}

public class Virtual {
public static void main(String[] args) {
assert new Outer(new Inner()).b();
}
}
8 changes: 8 additions & 0 deletions regression/cbmc-java/virtual_function_unwinding/test.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
KNOWNBUG
Virtual.class
^EXIT=0$
^SIGNAL=0$
^VERIFICATION SUCCESSFUL$
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a comment linking to the issue:

--
--
diffblue/test-gen#845

--
--
See diffblue/test-gen#845 for details