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

Subversion Repositories openrisc

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

Compare with Previous | Blame | View Log

/* SSA-DCE was removing the initialization of the temporary object
   in getFoo because it wasn't realizing that the pointer was needed
   outside of it.  */
 
public class PR16867
{
  public static Object[] getFoo()
  {
    return new Object[] {"OK"};
  }
 
  public static void main(String[] args)
  {
    Object[] a = getFoo();
    System.out.println(a[0]);
  }
}
 

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.