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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 765 jeremybenn
// PR19870: Test synthetic accessor generation for private static methods
2
// accessed across nested class boundaries.
3
public class PR19870_2
4
{
5
  static class A
6
  {
7
    private static void foo( )
8
    {
9
      System.out.println( "1");
10
    }
11
 
12
    private static void bar( int x)
13
    {
14
      System.out.println( x);
15
      snafu( );
16
      PR19870_2.snafu( );
17
    }
18
  }
19
 
20
  static class B
21
  {
22
    private static void foo( )
23
    {
24
      A.foo( );
25
    }
26
  }
27
 
28
  private static void snafu( )
29
  {
30
    System.out.println( "3");
31
  }
32
 
33
  public static void main( String[] args)
34
  {
35
    A.foo( );
36
    A.bar( 2);
37
    B.foo( );
38
  }
39
}

powered by: WebSVN 2.1.0

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