instinit2.out: New file.

* 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
This commit is contained in:
Alexandre Petit-Bianco 2000-02-07 21:40:18 +00:00 committed by Tom Tromey
parent f81f5a9db6
commit de9127c1b7
15 changed files with 330 additions and 0 deletions

View file

@ -0,0 +1,27 @@
// Class nested_with_ctor
// Generated on Mon Jan 31 18:31:47 PST 2000
// The nested class contains explicit constructors. Their argument
// lists should be augmented with the alias initializer values when
// the ctors are seen declared (as opposed to generated.)
class nested_with_ctor {
void fct(final String s, final int i)
{
class nested {
String buffer = s+i;
String getString () { return buffer; }
nested (int i) { buffer = "(int)"+i; }
nested () {}
}
nested x = new nested ();
System.out.println (x.getString ());
nested y = new nested (123);
System.out.println (y.getString ());
}
public static void main (String[] arg)
{
System.out.println ("Testing class `nested_with_ctor'...");
new nested_with_ctor ().fct ("Yikes!", 321);
}
}