summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.cni/shortfield.java
blob: 68b6c5e22fb1f29250eebd12f8632fc5efafd60e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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();
  }
}