2002-03-12 07:23:25 +00:00
|
|
|
class PR5913
|
|
|
|
{
|
|
|
|
public static void main(String[] args)
|
|
|
|
{
|
2002-03-12 07:40:46 +00:00
|
|
|
boolean test1 = ("" + 1) instanceof String;
|
|
|
|
// This also tests literal parsing, as mentioned in PR 5902.
|
|
|
|
boolean test2 = "" + 0x1instanceof String;
|
|
|
|
System.exit((test1 && test2) ? 0 : 1);
|
2002-03-12 07:23:25 +00:00
|
|
|
}
|
|
|
|
}
|