Commit de6ba6e5 by Mark Wielaard Committed by Mark Wielaard

For PR java/6519:

	* libjava.lang/emptystring.java: New.
	* libjava.lang/emptystring.out: New.

From-SVN: r53157
parent 8a28dbcc
2002-05-04 Mark Wielaard <mark@klomp.org>
For PR java/6519:
* libjava.lang/emptystring.java: New.
* libjava.lang/emptystring.out: New.
2002-04-21 Mark Wielaard <mark@klomp.org>
* libjava.mauve/xfail: Expect failures for PR java/6391 and
......
public class emptystring
{
public static void main(String[] args)
{
System.out.println("null".equals(n(0) + ""));
System.out.println("null".equals("" + n(0)));
System.out.println("x".equals(n(1) + ""));
System.out.println("x".equals("" + n(1)));
}
static String n(int i)
{
if (i==0) return null; else return "x";
}
}
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