Commit ac7aae5e by Tom Tromey Committed by Tom Tromey

verify.java: New file.

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

From-SVN: r66547
parent 0b745a5b
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> 2003-05-01 Tom Tromey <tromey@redhat.com>
PR java/10459: PR java/10459:
......
// 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);
}
}
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