Skip to content

Commit 1f06d35

Browse files
Merge pull request diffblue#312 from diffblue/pull-support-20180112
Pull support 20180112
2 parents 3d492fe + e42e97a commit 1f06d35

File tree

285 files changed

+4728
-2065
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

285 files changed

+4728
-2065
lines changed
716 Bytes
Binary file not shown.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
public class InstanceOf8 {
2+
public static boolean test(Integer i) {
3+
if (i instanceof Integer) {
4+
return true;
5+
} else {
6+
return false;
7+
}
8+
}
9+
public static void main(String[] args)
10+
{
11+
assert(!test(null));
12+
assert(test(new Integer(1)));
13+
}
14+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CORE
2+
InstanceOf8.class
3+
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^VERIFICATION SUCCESSFUL$
7+
--
Binary file not shown.
Binary file not shown.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CORE
2+
test.class
3+
--lazy-methods --verbosity 10 --function test.g
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
elaborate java::test\.f:\(\)I
7+
VERIFICATION SUCCESSFUL
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
public class test {
3+
4+
public int f() { return 1; }
5+
6+
public static void g(test[] args) {
7+
8+
if(args == null || args.length != 1 || args[0] == null)
9+
return;
10+
asserthere.doassert(args[0].f() == 1);
11+
12+
}
13+
14+
}
15+
16+
class asserthere {
17+
18+
// Used to avoid lazy-loading currently marking any class with an
19+
// $assertionsEnabled member (i.e. any class that asserts) as needed.
20+
public static void doassert(boolean condition) { assert(condition); }
21+
22+
}
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)