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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 765 jeremybenn
public class PR7482
2
{
3
  private interface I { }
4
  private static class B { }
5
  private static class U extends B implements I { }
6
  private static class V extends B implements I { }
7
 
8
  static I field;
9
 
10
  private static void g1(Object o)
11
  {
12
    I val;
13
    if (o == null)
14
      val = new U();
15
    else
16
      val = new V();
17
    field = val;
18
  }
19
 
20
  private static I g2(Object o)
21
  {
22
    I val;
23
    if (o == null)
24
      val = new U();
25
    else
26
      val = new V();
27
    return val;
28
  }
29
 
30
  public static void main(String[] args)
31
  {
32
    g1(null);
33
    g2(null);
34
  }
35
}

powered by: WebSVN 2.1.0

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