For PR java/6519:

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

From-SVN: r53157
This commit is contained in:
Mark Wielaard 2002-05-04 13:24:40 +00:00 committed by Mark Wielaard
parent 8a28dbccfd
commit de6ba6e546
3 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,15 @@
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";
}
}