diff options
Diffstat (limited to 'libjava/testsuite/libjava.compile/inner_inherit.java')
| -rw-r--r-- | libjava/testsuite/libjava.compile/inner_inherit.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.compile/inner_inherit.java b/libjava/testsuite/libjava.compile/inner_inherit.java new file mode 100644 index 00000000000..44ad6a96c22 --- /dev/null +++ b/libjava/testsuite/libjava.compile/inner_inherit.java @@ -0,0 +1,14 @@ +// Test to insure that we can refer to methods inherited through an +// inner class. + +public class inner_inherit +{ + private class Agent extends Thread { + } + + public void f () + { + Agent a = new Agent(); + a.setDaemon(true); + } +} |

