summaryrefslogtreecommitdiffstats
path: root/libjava/testsuite
diff options
context:
space:
mode:
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-24 14:34:19 +0000
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-24 14:34:19 +0000
commit70f808f2d801dabff2152c0f11abc16e56f16300 (patch)
treee0a0cb7ef097bd8ede15923f72e3c49733beef0a /libjava/testsuite
parent0da26c2ee4178bda0d62eb204ff527404d528c0a (diff)
downloadppe42-gcc-70f808f2d801dabff2152c0f11abc16e56f16300.tar.gz
ppe42-gcc-70f808f2d801dabff2152c0f11abc16e56f16300.zip
PR java/19295
* jcf-write.c (generate_bytecode_insns): Conversions between integer types of the same precision shouldn't generate widening or narrowing conversion bytecodes. * testsuite/libjava.compile/PR19295.java: New test case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94162 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/testsuite')
-rw-r--r--libjava/testsuite/libjava.compile/PR19295.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.compile/PR19295.java b/libjava/testsuite/libjava.compile/PR19295.java
new file mode 100644
index 00000000000..336f7e9863b
--- /dev/null
+++ b/libjava/testsuite/libjava.compile/PR19295.java
@@ -0,0 +1,16 @@
+public class PR19295 implements myInterface {
+ public long tagBits = 0;
+
+ public final boolean isArrayType() {
+ return (tagBits & IsArrayType) != 0;
+ }
+}
+
+abstract class blah {
+ public final static int Bit1 = 0x2;
+}
+
+interface myInterface {
+ long IsArrayType = blah.Bit1;
+}
+
OpenPOWER on IntegriCloud