forked from diffblue/cbmc
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c14e907
commit eea76ec
Showing
3 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+556 Bytes
regression/cbmc-java/assertion_error_constructors/AssertionIssue.class
Binary file not shown.
13 changes: 13 additions & 0 deletions
13
regression/cbmc-java/assertion_error_constructors/AssertionIssue.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
public class AssertionIssue { | ||
|
||
public static void throwAssertion() { | ||
throw new AssertionError("Something went terribly wrong.", new ThrowableAssertion()); | ||
} | ||
|
||
public static class ThrowableAssertion extends Throwable { | ||
@Override | ||
public String getMessage() { | ||
return "How did we get here?"; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CORE | ||
AssertionIssue.class | ||
--function AssertionIssue.throwAssertion | ||
^EXIT=0$ | ||
^SIGNAL=0$ | ||
^VERIFICATION SUCCESSFUL$ | ||
-- | ||
^warning: ignoring |