Commit 665bfbb0 by Tom Tromey Committed by Tom Tromey

stringconst.out: New file.

	* libjava.lang/stringconst.out: New file.
	* libjava.lang/stringconst.java: New file.

From-SVN: r34115
parent cd2b33d0
2000-05-23 Tom Tromey <tromey@cygnus.com>
* libjava.lang/stringconst.out: New file.
* libjava.lang/stringconst.java: New file.
2000-05-22 Bryce McKinlay <bryce@albatross.co.nz>
* libjava.compile/PR232B.java: Additional PR gcj/232 test.
......
// A reference to a String shouldn't cause an interface to be
// initialized.
interface I
{
String z = "zardoz";
int q = stringconst.out ("q", 0);
}
public class stringconst
{
public static int out (String s, int i)
{
System.out.println (s + "=" + i);
return i;
}
public static void main (String[] args)
{
System.out.println (I.z);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment