verify.java: New file.
* libjava.lang/verify.java: New file. * libjava.lang/verify.out: New file. From-SVN: r66547
This commit is contained in:
parent
0b745a5bcc
commit
ac7aae5e2b
@ -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:
|
||||
|
20
libjava/testsuite/libjava.lang/verify.java
Normal file
20
libjava/testsuite/libjava.lang/verify.java
Normal 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);
|
||||
}
|
||||
}
|
0
libjava/testsuite/libjava.lang/verify.out
Normal file
0
libjava/testsuite/libjava.lang/verify.out
Normal file
Loading…
Reference in New Issue
Block a user