mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-19 09:04:09 +08:00
static_inner.java: New file.
2000-02-28 Mo DeJong <mdejong@cygnus.com> * libjava.compile/static_inner.java: New file. From-SVN: r32250
This commit is contained in:
parent
9df2c88cf7
commit
73bb4fe42a
@ -1,3 +1,7 @@
|
||||
2000-02-28 Mo DeJong <mdejong@cygnus.com>
|
||||
|
||||
* libjava.compile/static_inner.java: New file.
|
||||
|
||||
2000-02-23 Tom Tromey <tromey@cygnus.com>
|
||||
|
||||
* libjava.jni/noclass.c: New file.
|
||||
|
19
libjava/testsuite/libjava.compile/static_inner.java
Normal file
19
libjava/testsuite/libjava.compile/static_inner.java
Normal file
@ -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);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user