6932a1994e
* lib/libjava.exp (gcj_invoke): Moved... * libjava.jni/jni.exp: ...from here. * libjava.cni/shortfield.out: New file. * libjava.cni/shortfield.java: New file. * libjava.cni/natshortfield.cc: New file. * libjava.cni/natlongfield.cc: New file. * libjava.cni/longfield.out: New file. * libjava.cni/longfield.java: New file. * libjava.cni/cni.exp: New file. From-SVN: r64702
22 lines
315 B
Java
22 lines
315 B
Java
class shortfieldbase
|
|
{
|
|
short modCount;
|
|
}
|
|
|
|
public class shortfield extends shortfieldbase
|
|
{
|
|
short size__;
|
|
int data;
|
|
|
|
native void ouch ();
|
|
|
|
public static void main (String[] s)
|
|
{
|
|
shortfield f = new shortfield();
|
|
f.modCount = 99;
|
|
f.size__ = 2;
|
|
f.data = 0x12345678;
|
|
f.ouch();
|
|
}
|
|
}
|