OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.lang/] [PR6729.java] - Blame information for rev 765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 765 jeremybenn
public class PR6729
2
{
3
    static int attr = 0x9;
4
 
5
    public static void main(String [] args) {
6
        boolean res = ( ( 1 << attr ) & 0x1000 ) != 0 ;
7
        System.out.println("this should be "+res+": "+isWhite());
8
    }
9
 
10
    public static boolean isWhite() {
11
        return ( ( 1 << attr ) & 0x1000 ) != 0 ;
12
    }
13
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.