diff options
Diffstat (limited to 'libjava/testsuite/libjava.compile/static_inner.java')
-rw-r--r-- | libjava/testsuite/libjava.compile/static_inner.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.compile/static_inner.java b/libjava/testsuite/libjava.compile/static_inner.java new file mode 100644 index 0000000..ca0d99f --- /dev/null +++ b/libjava/testsuite/libjava.compile/static_inner.java @@ -0,0 +1,19 @@ +// File Parent.java +class Parent { + public static class Kid { + public Kid(int age) { + this.age = age; + } + + int age; + } +} + +// File NewParent.java +public class static_inner extends Parent { + + public static void main(String[] argv) { + Kid kid = new Kid(2); + } + +} |