OSDN Git Service

PR tree-optimization/16867
[pf3gnuchains/gcc-fork.git] / libjava / testsuite / libjava.lang / PR16867.java
1 /* 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 }