Skip to content

Commit dae4040

Browse files
committed
Add test for object trees coming from opaque methods.
1 parent 3f2c163 commit dae4040

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed
Binary file not shown.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
public class TestGenTest {
2+
public static void test() {
3+
Opaque o = new Opaque();
4+
assert(!(o != null && o.y != null && o.x == 1 && o.y.x == 2));
5+
}
6+
}
7+
8+
class Opaque {
9+
public int x;
10+
public Opaque2 y;
11+
}
12+
13+
class Opaque2 {
14+
public int x;
15+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
TestGenTest.class
3+
--stop-on-fail --gen-java-test-case --function TestGenTest.test
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^.*Reflector.setInstanceField(dynamic_object2,"x",2).*$
7+
^.*Reflector.setInstanceField(to_construct$2,"y",dynamic_object2).*$
8+
^.*Reflector.setInstanceField(to_construct$2,"x",1).*$

0 commit comments

Comments
 (0)