diff options
author | Eric Blake <ebb9@email.byu.edu> | 2002-03-12 07:40:46 +0000 |
---|---|---|
committer | Eric Blake <ericb@gcc.gnu.org> | 2002-03-12 07:40:46 +0000 |
commit | 36e513832532a32dec26af571981270f97c245ce (patch) | |
tree | 10c98231458398e95c3470b6048db56acf709e2a | |
parent | 76a43492ea69b109bed4ad0fee3e067d4b067b6c (diff) | |
download | gcc-36e513832532a32dec26af571981270f97c245ce.zip gcc-36e513832532a32dec26af571981270f97c245ce.tar.gz gcc-36e513832532a32dec26af571981270f97c245ce.tar.bz2 |
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
-rw-r--r-- | libjava/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | libjava/testsuite/libjava.compile/PR5913.java | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/libjava/testsuite/ChangeLog b/libjava/testsuite/ChangeLog index d250b9e..05b20d5 100644 --- a/libjava/testsuite/ChangeLog +++ b/libjava/testsuite/ChangeLog @@ -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. diff --git a/libjava/testsuite/libjava.compile/PR5913.java b/libjava/testsuite/libjava.compile/PR5913.java index 662932a..0ae68be 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); } } |