forked from diffblue/cbmc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request diffblue#1982 from NathanJPhillips/bugfix/load-obj…
…ect-once Fixes related to diffblue#1816
- Loading branch information
Showing
10 changed files
with
90 additions
and
12 deletions.
There are no files selected for viewing
Binary file not shown.
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,3 @@ | ||
public class Test { | ||
public void main() {} | ||
} |
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,10 @@ | ||
CORE symex-driven-lazy-loading-expected-failure | ||
Test.class | ||
--classpath ./NotHere.jar | ||
^EXIT=6$ | ||
^SIGNAL=0$ | ||
^the program has no entry point$ | ||
^failed to load class `Test'$ | ||
-- | ||
-- | ||
symex-driven lazy loading should emit "the program has no entry point" but currently doesn't |
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,10 @@ | ||
CORE symex-driven-lazy-loading-expected-failure | ||
Test.class | ||
--classpath ./NotHere | ||
^EXIT=6$ | ||
^SIGNAL=0$ | ||
^the program has no entry point$ | ||
^failed to load class `Test'$ | ||
-- | ||
-- | ||
symex-driven lazy loading should emit "the program has no entry point" but currently doesn't |
Binary file added
BIN
+1.08 KB
regression/cbmc-java/provide_object_implementation/java/lang/Object.class
Binary file not shown.
33 changes: 33 additions & 0 deletions
33
regression/cbmc-java/provide_object_implementation/java/lang/Object.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,33 @@ | ||
package java.lang; | ||
|
||
public class Object { | ||
public final Class<?> getClass() { | ||
return null; | ||
} | ||
|
||
public int hashCode() { return 0; } | ||
|
||
public boolean equals(Object obj) { return (this == obj); } | ||
|
||
protected Object clone() throws CloneNotSupportedException { | ||
throw new CloneNotSupportedException(); | ||
} | ||
|
||
public String toString() { return "object"; } | ||
|
||
public final void notify() {} | ||
|
||
public final void notifyAll() {} | ||
|
||
public final void wait(long timeout) throws InterruptedException { | ||
throw new InterruptedException(); | ||
} | ||
|
||
public final void wait(long timeout, int nanos) throws InterruptedException { | ||
wait(timeout); | ||
} | ||
|
||
public final void wait() throws InterruptedException { wait(0); } | ||
|
||
protected void finalize() throws Throwable { } | ||
} |
10 changes: 10 additions & 0 deletions
10
regression/cbmc-java/provide_object_implementation/test.desc
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,10 @@ | ||
CORE symex-driven-lazy-loading-expected-failure | ||
java/lang/Object.class | ||
|
||
^EXIT=6$ | ||
^SIGNAL=0$ | ||
^the program has no entry point$ | ||
-- | ||
^failed to add class symbol java::java\.lang\.Object$ | ||
-- | ||
symex-driven lazy loading should emit "the program has no entry point" but currently doesn't |
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
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
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