assertEquals("Int reference written when it should not be", MAGIC, ref.getValue());
}
@Test public void outOnlyIntReferenceNotRead() {
TestLibOutOnly lib = TstUtil.loadTestLib(TestLibOutOnly.class);
Runtime runtime = Runtime.getRuntime(lib);
final Pointer MAGIC = Memory.allocateDirect(runtime, 123);
PointerByReference ref = new PointerByReference(MAGIC);
assertNotSame("Reference value passed to native code when it should not be", MAGIC, lib.ptr_ret_pointer(ref, 0));