jdk-24/test/langtools/tools/javac/unicode/TripleQuote.java
2017-09-12 19:03:39 +02:00

15 lines
286 B
Java

/*
* @test /nodynamiccopyright/
* @bug 1265387 8048805
* @summary ''' and '\u0027' are not legal char literals.
* @author turnidge
*
* @compile/fail/ref=TripleQuote.out -XDrawDiagnostics TripleQuote.java
*/
public
class TripleQuote {
char c = '\u0027';
char d = ''';
}