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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.lang/] [stringconst.java] - Rev 765

Compare with Previous | Blame | View Log

// A reference to a String shouldn't cause an interface to be
// initialized.
 
interface I
{
  String z = "zardoz";
  int q = stringconst.out ("q", 0);
}
 
public class stringconst
{
  public static int out (String s, int i)
  {
    System.out.println (s + "=" + i);
    return i;
  }
 
  public static void main (String[] args)
  {
    System.out.println (I.z);
  }
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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