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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.lang/] [assign2.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
// Test for an array assignment bug we've had.
2
 
3
public class assign2
4
{
5
  public static Object[][] c () { return new Long[5][5]; }
6
 
7
  public static Object[] d () { return new Integer[3]; }
8
 
9
  public static void main(String[] args)
10
  {
11
    try
12
      {
13
        Object[][] x = c();
14
        x[0] = d();
15
      }
16
    catch (ArrayStoreException _)
17
      {
18
        System.out.println("good");
19
      }
20
  }
21
}

powered by: WebSVN 2.1.0

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