diff options
author | ericb <ericb@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-12 07:40:46 +0000 |
---|---|---|
committer | ericb <ericb@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-12 07:40:46 +0000 |
commit | 200f09b7fab0359b5399cba12f8a56c124c5337c (patch) | |
tree | 10c98231458398e95c3470b6048db56acf709e2a /libjava/testsuite/libjava.compile | |
parent | c68723c29ebd2baff80e9ac23cbe9f7a1a4b1917 (diff) | |
download | ppe42-gcc-200f09b7fab0359b5399cba12f8a56c124c5337c.tar.gz ppe42-gcc-200f09b7fab0359b5399cba12f8a56c124c5337c.zip |
2002-03-12 Eric Blake <ebb9@email.byu.edu>
* libjava.compile/PR5913.java: Expand test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50638 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/testsuite/libjava.compile')
-rw-r--r-- | libjava/testsuite/libjava.compile/PR5913.java | 5 |
1 files changed, 4 insertions, 1 deletions
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); } } |