OSDN Git Service

2002-03-12 Eric Blake <ebb9@email.byu.edu>
authorericb <ericb@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Mar 2002 07:40:46 +0000 (07:40 +0000)
committerericb <ericb@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Mar 2002 07:40:46 +0000 (07:40 +0000)
* libjava.compile/PR5913.java: Expand test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50638 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/testsuite/ChangeLog
libjava/testsuite/libjava.compile/PR5913.java

index d250b9e..05b20d5 100644 (file)
@@ -1,3 +1,7 @@
+2002-03-12  Eric Blake  <ebb9@email.byu.edu>
+
+       * libjava.compile/PR5913.java: Expand test.
+
 2002-03-11  Eric Blake  <ebb9@email.byu.edu>
 
        * libjava.compile/PR5902.java: New file.
index 662932a..0ae68be 100644 (file)
@@ -2,6 +2,9 @@ class PR5913
 {
   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);
   }
 }