diff options
Diffstat (limited to 'libjava/testsuite/libjava.cni/shortfield.java')
-rw-r--r-- | libjava/testsuite/libjava.cni/shortfield.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.cni/shortfield.java b/libjava/testsuite/libjava.cni/shortfield.java new file mode 100644 index 0000000..68b6c5e --- /dev/null +++ b/libjava/testsuite/libjava.cni/shortfield.java @@ -0,0 +1,21 @@ +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(); + } +} |