OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.lang/] [pr21844.java] - Blame information for rev 781

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 765 jeremybenn
class pr21844base
2
{
3
  int modCount;
4
 
5
  public pr21844base(int x)
6
  {
7
    modCount = x;
8
  }
9
}
10
 
11
public class pr21844 extends pr21844base
12
{
13
  class inner
14
  {
15
    public int doit ()
16
    {
17
      ++modCount;
18
      return modCount;
19
    }
20
  }
21
 
22
  public pr21844(int x)
23
  {
24
    super(x);
25
  }
26
 
27
  public static void main(String[] args)
28
  {
29
    pr21844 val = new pr21844(7);
30
    inner i = val.new inner();
31
    System.out.println(i.doit());
32
  }
33
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.