From: Eric Blake Date: Tue, 12 Mar 2002 07:40:46 +0000 (+0000) Subject: re PR java/5913 (Core dump for String constant instanceof) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=36e513832532a32dec26af571981270f97c245ce;p=gcc.git re PR java/5913 (Core dump for String constant instanceof) 2002-03-12 Eric Blake * libjava.compile/PR5913.java: Expand test. From-SVN: r50638 --- diff --git a/libjava/testsuite/ChangeLog b/libjava/testsuite/ChangeLog index d250b9e71e0..05b20d544ce 100644 --- a/libjava/testsuite/ChangeLog +++ b/libjava/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2002-03-12 Eric Blake + + * libjava.compile/PR5913.java: Expand test. + 2002-03-11 Eric Blake * libjava.compile/PR5902.java: New file. diff --git a/libjava/testsuite/libjava.compile/PR5913.java b/libjava/testsuite/libjava.compile/PR5913.java index 662932ae1ba..0ae68be215e 100644 --- a/libjava/testsuite/libjava.compile/PR5913.java +++ b/libjava/testsuite/libjava.compile/PR5913.java @@ -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); } }