diff options
author | Bryce McKinlay <bryce@waitaki.otago.ac.nz> | 2002-05-23 03:30:13 +0000 |
---|---|---|
committer | Bryce McKinlay <bryce@gcc.gnu.org> | 2002-05-23 04:30:13 +0100 |
commit | 851ac95734648ae4834ac05cda1a4b9efcecc5d9 (patch) | |
tree | 916c77adb26920e038508c8bd99c75d1532afe12 /libjava/testsuite/libjava.lang/PR6729.java | |
parent | cbaaba19a4051beef0a3efb2121c155ec094787f (diff) | |
download | gcc-851ac95734648ae4834ac05cda1a4b9efcecc5d9.zip gcc-851ac95734648ae4834ac05cda1a4b9efcecc5d9.tar.gz gcc-851ac95734648ae4834ac05cda1a4b9efcecc5d9.tar.bz2 |
Test case for PR 6729.
From-SVN: r53758
Diffstat (limited to 'libjava/testsuite/libjava.lang/PR6729.java')
-rw-r--r-- | libjava/testsuite/libjava.lang/PR6729.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.lang/PR6729.java b/libjava/testsuite/libjava.lang/PR6729.java new file mode 100644 index 0000000..58dac18 --- /dev/null +++ b/libjava/testsuite/libjava.lang/PR6729.java @@ -0,0 +1,13 @@ +public class PR6729 +{ + static int attr = 0x9; + + public static void main(String [] args) { + boolean res = ( ( 1 << attr ) & 0x1000 ) != 0 ; + System.out.println("this should be "+res+": "+isWhite()); + } + + public static boolean isWhite() { + return ( ( 1 << attr ) & 0x1000 ) != 0 ; + } +} |