Skip to content

Commit d52dcd4

Browse files
committed
Add unit test verifying that java_object_factory doesn't strip tag types
Previously if asked to populate a pointer with tagged type (e.g. "Object *") then it would allocate a "struct Object { ... }", i.e. the struct_typet rather than the struct_tag_typet. This verifies that it now retains tag types.
1 parent 2ecdc0e commit d52dcd4

File tree

17 files changed

+259
-0
lines changed

17 files changed

+259
-0
lines changed
264 Bytes
Binary file not shown.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
public class A {
3+
4+
public B b;
5+
public C c;
6+
7+
}
8+
9+
class B { }
10+
11+
class C { }
228 Bytes
Binary file not shown.
228 Bytes
Binary file not shown.
235 Bytes
Binary file not shown.
849 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
public class HasArray {
3+
4+
public D[] ds;
5+
6+
}
7+
8+
class D { }
Binary file not shown.

0 commit comments

Comments
 (0)