[foreign] RFR: add test for mutually referring structs
Henry Jen
henry.jen at oracle.com
Thu Aug 2 18:57:09 UTC 2018
+1.
My eyes and brain hurts looking at it :P
Test hard coded with layout string works on 64-bit platform, that’s not a big deal as it’s what we supported now. However, if we want to use jextract over C declaration code, it can be done with JtregJextract helper class.
Cheers,
Henry
> On Aug 2, 2018, at 5:10 AM, Maurizio Cimadamore <maurizio.cimadamore at oracle.com> wrote:
>
> Hi,
> as part of some worek I'm doing on unresolved layout, I thought it would be a good idea to start checking in some tests stressing the unresolved layout resolution machinery, so that, if we make changes in this area, we make sure we do not regress.
>
> This test checks two mutually referring structs; there are two flavor of the test, one where the structs refer to each other with a pointer, another where the structs refer to themselves via a double pointer.
>
> Webrev:
>
> http://cr.openjdk.java.net/~mcimadamore/panama/mutual-structs/
>
> Maurizio
>
More information about the panama-dev
mailing list