mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-05 07:58:40 +00:00
15 lines
381 B
Java
15 lines
381 B
Java
/*
|
|
* @test /nodynamiccopyright/
|
|
* @bug 4707960 6183529
|
|
* @summary javac accepts unicode digits - sometimes crashing
|
|
* @author gafter
|
|
*
|
|
* @compile/fail/ref=NonasciiDigit2.out -XDrawDiagnostics NonasciiDigit2.java
|
|
*/
|
|
public class NonasciiDigit2 {
|
|
public static void main(String[] args) {
|
|
// error: only ASCII allowed in constants
|
|
int i = 1\uff11;
|
|
}
|
|
}
|