1 /*
2  * @test /nodynamiccopyright/
3  * @bug 6794959
4  * @summary add new switch -XDexpectKeys=key,key,...
5  * @compile T6794959.java
6  * @compile/fail/ref=T6794959a.out -XDrawDiagnostics  -XDfailcomplete=java.lang.String T6794959.java
7  * @compile -XDfailcomplete=java.lang.String -XDexpectKeys=compiler.err.cant.resolve.location T6794959.java
8  * @compile/fail/ref=T6794959b.out -XDrawDiagnostics -XDexpectKeys=compiler.err.cant.resolve.location T6794959.java
9  */
10 
11 class T6794959 {
12     String s;
13 }
14