diff options
| author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-06-27 18:40:16 +0000 |
|---|---|---|
| committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-06-27 18:40:16 +0000 |
| commit | 8c910840957eb221a38af5a2fb7459381a00fac7 (patch) | |
| tree | 5bdfeb3073dddff148a77228a8e3565890e2e858 /libjava/testsuite/libjava.compile | |
| parent | 151c195f213414d36e8d14f2146b298221c7efb5 (diff) | |
| download | ppe42-gcc-8c910840957eb221a38af5a2fb7459381a00fac7.tar.gz ppe42-gcc-8c910840957eb221a38af5a2fb7459381a00fac7.zip | |
gcc/java/:
PR java/21540, PR java/13788:
* parse.y (java_complete_lhs) <CASE_EXPR>: Use
fold_constant_for_init.
(patch_binop): Added 'folding' argument. Updated all callers.
(patch_unaryop) <NOP_EXPR>: New case.
(fold_constant_for_init) <NOP_EXPR>: Likewise.
(fold_constant_for_init) <COND_EXPR>: Fix sense of test.
libjava/:
PR java/21540, PR java/13788:
* testsuite/libjava.compile/pr21540.java: New file.
* testsuite/libjava.compile/pr13788.java: New file.
* testsuite/libjava.jacks/jacks.xfail: Updated.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101358 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/testsuite/libjava.compile')
| -rw-r--r-- | libjava/testsuite/libjava.compile/pr13788.java | 8 | ||||
| -rw-r--r-- | libjava/testsuite/libjava.compile/pr21540.java | 15 |
2 files changed, 23 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.compile/pr13788.java b/libjava/testsuite/libjava.compile/pr13788.java new file mode 100644 index 00000000000..44f25ea1ccf --- /dev/null +++ b/libjava/testsuite/libjava.compile/pr13788.java @@ -0,0 +1,8 @@ +class pr13788 { + private static final int DUMMY1 = 1 >>> 1; + + public static void main(String [] args) { + System.out.println(DUMMY1); + } +} + diff --git a/libjava/testsuite/libjava.compile/pr21540.java b/libjava/testsuite/libjava.compile/pr21540.java new file mode 100644 index 00000000000..4d6841f8b38 --- /dev/null +++ b/libjava/testsuite/libjava.compile/pr21540.java @@ -0,0 +1,15 @@ +public class pr21540 +{ + public static final long xxx = 555; + + public boolean fn (int v) + { + switch (v) + { + case ((int) xxx >>> 32): + return true; + default: + return false; + } + } +} |

