Test Java reflection of exported struct containing struct fields.

This is a regression/conformance test for a Java reflection fix
(change I0f35ae3e34830c5caa3f06b81595ce411e25bcf3): "Assert or
uncompileable code for struct-typed field".  Prior to that fix,
llvm-rs-cc would assert if an exported struct has two fields of the
same struct type; and llvm-rs-cc would generate reflected Java code
that cannot be compiled ("Duplicate local variable eb_") if an
exported struct has two fields of different struct types.

Ported from

  platform/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/{UT_struct_field.java,struct_field.rs}

change Ia658b02937935aeb71a0c70cffa37a8db9be7876.

Test: aosp_flounder-eng: cts -m RenderscriptTest

Bug: 19545299
Change-Id: I14b9c804023f1dc8eb8a456a2cb323650100e9ce
2 files changed