mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-20 16:39:50 +08:00
a717799c52
From-SVN: r37926
23 lines
466 B
Java
23 lines
466 B
Java
// Class instinit
|
|
// Generated on Wed Feb 2 12:31:16 PST 2000
|
|
// Simple instance initializer test case.
|
|
|
|
class instinit {
|
|
|
|
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);
|
|
}
|
|
}
|