PR rtl-optimization/57003
[official-gcc.git] / libjava / testsuite / libjava.lang / pr8823.java
blob3327ddf7a2a8d2f4652d775b0af1a6d05ebb7921
1 interface I
3 public void m();
6 abstract class A implements I
8 // But doesn't define m()
11 public class pr8823 extends A // which means it implements I
13 public static void main(String[] args)
15 // Defining c as either I or C will work.
16 A c = new pr8823();
17 c.m();
20 public void m()
22 System.out.println("Hello World!");