changeset 55700 | 1bb102c1cf27 |
55699:04d80e7ad3f4 | 55700:1bb102c1cf27 |
---|---|
1 /* |
|
2 * @test /nodynamiccopyright/ |
|
3 * @bug 8227640 |
|
4 * @summary Verify that illegal escapes in text blocks do not crash the javac. |
|
5 * @compile/fail/ref=TextBlockIllegalEscape.out --enable-preview -source ${jdk.version} -XDrawDiagnostics TextBlockIllegalEscape.java |
|
6 */ |
|
7 |
|
8 public class TextBlockIllegalEscape { |
|
9 static void test() { |
|
10 EQ(""" |
|
11 \! |
|
12 """, ""); |
|
13 } |
|
14 } |