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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 765 jeremybenn
// A reference to a String shouldn't cause an interface to be
2
// initialized.
3
 
4
interface I
5
{
6
  String z = "zardoz";
7
  int q = stringconst.out ("q", 0);
8
}
9
 
10
public class stringconst
11
{
12
  public static int out (String s, int i)
13
  {
14
    System.out.println (s + "=" + i);
15
    return i;
16
  }
17
 
18
  public static void main (String[] args)
19
  {
20
    System.out.println (I.z);
21
  }
22
}

powered by: WebSVN 2.1.0

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