mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-22 19:59:44 +08:00
de9127c1b7
* libjava.lang/instinit2.out: New file. * libjava.lang/instinit2.java: New file. * libjava.lang/instinit.out: New file. * libjava.lang/instinit.java: New file. * libjava.lang/anonarray2.out: New file. * libjava.lang/anonarray2.java: New file. * libjava.lang/anonarray.out: New file. * libjava.lang/anonarray.java: New file. * libjava.lang/nested_with_ctor.out: New file. * libjava.lang/nested_with_ctor.java: New file. * libjava.lang/anfi.out: New file. * libjava.lang/anfi.java: New file. * libjava.lang/stub.out: New file. * libjava.lang/stub.java: New file. From-SVN: r31841
23 lines
478 B
Java
23 lines
478 B
Java
// Class instinit
|
|
// Generated on Wed Feb 2 12:31:16 PST 2000
|
|
// Simple instance initializer test case.
|
|
|
|
class instinit extends foo {
|
|
|
|
String buffer = "No Oink! Oink!";
|
|
|
|
/* Instance initializer */
|
|
{
|
|
System.out.println ("Oinking...");
|
|
}
|
|
{
|
|
buffer = "Oink! Oink!";
|
|
}
|
|
|
|
public static void main (String[] arg)
|
|
{
|
|
System.out.println ("Testing class `instinit'...");
|
|
System.out.println (new instinit ().buffer);
|
|
}
|
|
}
|