gcc/libjava/testsuite/libjava.lang/verify.java
Tom Tromey ac7aae5e2b verify.java: New file.
* libjava.lang/verify.java: New file.
	* libjava.lang/verify.out: New file.

From-SVN: r66547
2003-05-07 01:23:16 +00:00

21 lines
309 B
Java

// 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);
}
}