blob: 6862892304fca07f8ecd5cd808f92a83f81e2c8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/* 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]);
}
}
|