langtools/test/tools/javac/unicode/NonasciiDigit.java
author sogoel
Mon, 07 Jul 2014 13:39:31 -0700
changeset 25439 26d6d07eebc7
parent 5520 86e4b9a9da40
child 25600 7f93cb0536fd
permissions -rw-r--r--
8044080: .out files for unicode, implicitThis and importChecks tests in tools/javac dir Reviewed-by: jjg
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     1
/*
25439
26d6d07eebc7 8044080: .out files for unicode, implicitThis and importChecks tests in tools/javac dir
sogoel
parents: 5520
diff changeset
     2
 * @test /nodynamiccopyright/
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     3
 * @bug 4707960 6183529
06bc494ca11e Initial load
duke
parents:
diff changeset
     4
 * @summary javac accepts unicode digits - sometimes crashing
06bc494ca11e Initial load
duke
parents:
diff changeset
     5
 * @author gafter
06bc494ca11e Initial load
duke
parents:
diff changeset
     6
 *
25439
26d6d07eebc7 8044080: .out files for unicode, implicitThis and importChecks tests in tools/javac dir
sogoel
parents: 5520
diff changeset
     7
 * @compile/fail/ref=NonasciiDigit.out -XDrawDiagnostics  NonasciiDigit.java
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     8
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
     9
public class NonasciiDigit {
06bc494ca11e Initial load
duke
parents:
diff changeset
    10
    public static void main(String[] args) {
06bc494ca11e Initial load
duke
parents:
diff changeset
    11
        // error: floating literals use ascii only
06bc494ca11e Initial load
duke
parents:
diff changeset
    12
        float f = 0.\uff11;
06bc494ca11e Initial load
duke
parents:
diff changeset
    13
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
    14
}