1 /*
 2  * @test /nodynamiccopyright/
 3  * @bug 8237067
 4  * @summary Check that feature gated constructs are not allowed in previous versions.
 5  * @compile/fail/ref=CheckFeatureGate1.out --release=13 -XDrawDiagnostics CheckFeatureGate1.java
 6  */
 7 
 8 public class CheckFeatureGate1 {
 9 
10     static primitive class Val {
11         public int v = 42;
12     }
13 }