verify.java: New file.

* libjava.lang/verify.java: New file.
	* libjava.lang/verify.out: New file.

From-SVN: r66547
This commit is contained in:
Tom Tromey 2003-05-07 01:23:16 +00:00 committed by Tom Tromey
parent 0b745a5bcc
commit ac7aae5e2b
3 changed files with 25 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2003-05-06 Tom Tromey <tromey@redhat.com>
* libjava.lang/verify.java: New file.
* libjava.lang/verify.out: New file.
2003-05-01 Tom Tromey <tromey@redhat.com>
PR java/10459:

View File

@ -0,0 +1,20 @@
// Test for a verification regression.
interface I { }
class D implements I { }
class E extends D { }
public class verify
{
static void call(I v) { }
static void doit (Object x)
{
call ((x instanceof I) ? (I) x : new E ());
}
public static void main(String[] args)
{
doit(null);
}
}