jdk-24/langtools/test/tools/javac/unicode/SupplementaryJavaID3.java

14 lines
360 B
Java
Raw Normal View History

2007-12-01 00:00:00 +00:00
/*
* @test /nodynamiccopyright/
2007-12-01 00:00:00 +00:00
* @bug 4914724
* @summary Ensure that the invalid surrogate sequence, as the part of an identifier,
* causes a compilation failure
* @author Naoto Sato
*
* @compile/fail/ref=SupplementaryJavaID3.out -XDrawDiagnostics SupplementaryJavaID3.java
2007-12-01 00:00:00 +00:00
*/
public class SupplementaryJavaID3 {
int abc\ud801\ud801;
}