T8139249.java revision 3053:79e637c1e083
1/*
2 * @test /nodynamiccopyright/
3 * @bug 8138840 8139243 8139249
4 * @summary Compiler crashes when compiling bitwise operations with illegal operand types
5*           Unary operator erroneously applied to non-integral type operand
6 * @compile/fail/ref=T8139249.out -XDrawDiagnostics T8139249.java
7 */
8
9class T8139249 {
10    void test(float f2) {
11        float f1 = ~f2;
12    }
13}
14