Commit cd8dbeef by Andrew Haley Committed by Andrew Haley

Array_3.java (baz): New.

2002-10-03  Andrew Haley  <aph@redhat.com>

	* libjava.lang/Array_3.java (baz): New.
	(main): Call baz.

From-SVN: r57774
parent e832ab3c
2002-10-03 Andrew Haley <aph@redhat.com>
* libjava.lang/Array_3.java (baz): New.
(main): Call baz.
2002-09-29 Anthony Green <green@redhat.com>
* libjava.lang/TestProxy.java: New file.
......
......@@ -12,6 +12,13 @@ public class Array_3
return null;
}
static int baz ()
{
int[] x = (int[])null;
int nn = x.length;
return 5;
}
public static void main(String args[])
{
boolean ok = false;
......@@ -68,5 +75,17 @@ public class Array_3
}
if (!ok)
throw new RuntimeException("test failed:4");
ok = false;
try
{
nn = baz ();
}
catch (NullPointerException _)
{
ok = true;
}
if (!ok)
throw new RuntimeException("test failed:5");
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment