source: trunk/gcc/libjava/testsuite/libjava.lang/verify.java

Last change on this file was 1389, checked in by bird, 21 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 309 bytes
Line 
1// Test for a verification regression.
2
3interface I { }
4class D implements I { }
5class E extends D { }
6
7public class verify
8{
9 static void call(I v) { }
10
11 static void doit (Object x)
12 {
13 call ((x instanceof I) ? (I) x : new E ());
14 }
15
16 public static void main(String[] args)
17 {
18 doit(null);
19 }
20}
Note: See TracBrowser for help on using the repository browser.