1 /*
   2  * @test /nodynamiccopyright/
   3  * @summary check that record is not used as a type name
   4  * @compile/fail/ref=BadUseOfRecordKeywordTest.out -XDrawDiagnostics BadUseOfRecordKeywordTest.java
   5  */
   6 
   7 class BadUseOfRecordKeywordTest {
   8 
   9     interface record {
  10         void m();
  11     }
  12 
  13     class record {}
  14 
  15     enum record {A, B}
  16 
  17     record record(int x);
  18 }