Commit 36e51383 by Eric Blake Committed by Eric Blake

re PR java/5913 (Core dump for String constant instanceof)

2002-03-12  Eric Blake  <ebb9@email.byu.edu>

	* libjava.compile/PR5913.java: Expand test.

From-SVN: r50638
parent 76a43492
2002-03-12 Eric Blake <ebb9@email.byu.edu>
* libjava.compile/PR5913.java: Expand test.
2002-03-11 Eric Blake <ebb9@email.byu.edu> 2002-03-11 Eric Blake <ebb9@email.byu.edu>
* libjava.compile/PR5902.java: New file. * libjava.compile/PR5902.java: New file.
......
...@@ -2,6 +2,9 @@ class PR5913 ...@@ -2,6 +2,9 @@ class PR5913
{ {
public static void main(String[] args) public static void main(String[] args)
{ {
System.exit((("" + 1) instanceof String) ? 0 : 1); 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);
} }
} }
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