Tue, 10 Apr 2012 08:15:25 -0700
7074397: Build infrastructure changes (makefile re-write)
Summary: New makefiles transition, old and new living side by side for now.
Reviewed-by: ohair, jjg, dholmes, ohrstrom, erikj, ihse, tgranat, ykantser
Contributed-by: ohrstrom <fredrik.ohrstrom@oracle.com>, erikj <erik.joelsson@oracle.com>, ihse <magnus.ihse.bursie@oracle.com>, tgranat <torbjorn.granat@oracle.com>, ykantser <yekaterina.kantserova@oracle.com>
jjg@409 | 1 | /* |
jjg@409 | 2 | * @test /nodynamiccopyright/ |
jjg@409 | 3 | * @bug 6860965 |
jjg@409 | 4 | * @summary Project Coin: binary literals |
jjg@757 | 5 | * @compile/fail/ref=BadBinaryLiterals.6.out -XDrawDiagnostics -source 6 -Xlint:-options BadBinaryLiterals.java |
jjg@409 | 6 | * @compile/fail/ref=BadBinaryLiterals.7.out -XDrawDiagnostics BadBinaryLiterals.java |
jjg@409 | 7 | */ |
jjg@409 | 8 | |
jjg@409 | 9 | public class BadBinaryLiterals { |
jjg@409 | 10 | int valid = 0b0; // valid literal, illegal in source 6 |
jjg@409 | 11 | int baddigit = 0b012; // bad digit |
jjg@409 | 12 | //aaaabbbbccccddddeeeeffffgggghhhh |
jjg@409 | 13 | int overflow1 = 0b111111111111111111111111111111111; // too long for int |
jjg@409 | 14 | //aaaabbbbccccddddeeeeffffgggghhhhiiiijjjjkkkkllllmmmmnnnnoooopppp |
jjg@409 | 15 | int overflow2 = 0b11111111111111111111111111111111111111111111111111111111111111111L; // too long for long |
jjg@409 | 16 | float badfloat1 = 0b01.01; // no binary floats |
jjg@409 | 17 | float badfloat2 = 0b01e01; // no binary floats |
jjg@409 | 18 | } |