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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 765 jeremybenn
/* SSA-DCE was removing the initialization of the temporary object
2
   in getFoo because it wasn't realizing that the pointer was needed
3
   outside of it.  */
4
 
5
public class PR16867
6
{
7
  public static Object[] getFoo()
8
  {
9
    return new Object[] {"OK"};
10
  }
11
 
12
  public static void main(String[] args)
13
  {
14
    Object[] a = getFoo();
15
    System.out.println(a[0]);
16
  }
17
}

powered by: WebSVN 2.1.0

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