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

@ -1,3 +1,9 @@
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

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";
}
}

View File

@ -0,0 +1,4 @@
true
true
true
true