1 /*
   2  * @test /nodynamiccopyright/
   3  * @summary Verifying error recovery for broken record classes
   4  * @compile/fail/ref=BadRecord.out -XDrawDiagnostics BadRecord.java
   5  */
   6 record BadRecord001 {}
   7 
   8 record BadRecord0022( {}
   9 
  10 record BadRecord0033(int {}
  11 
  12 record BadRecord0044(int) {}
  13 
  14 record BadRecord005(int i {}
  15 
  16 record BadRecord006(int i, {}
  17 
  18 record BadRecord007(int i,) {}
  19 
  20 record BadRecord008(int i, int {}
  21 
  22 record BadRecord009(int i, int) {}
  23 
  24 record BadRecord010(int i, int j {}
  25 
  26 record BadRecord011(int i, int j, {}
  27 
  28 record BadRecord012(int i, int j,) {}
  29 
  30 record BadRecord013;
  31 
  32 record BadRecord014(;
  33 
  34 record BadRecord015(int;
  35 
  36 record BadRecord016(int);
  37 
  38 record BadRecord017(int i;
  39 
  40 record BadRecord018(int i,;
  41 
  42 record BadRecord019(int i,);
  43 
  44 record BadRecord020(int i, int;
  45 
  46 record BadRecord021(int i, int);
  47 
  48 record BadRecord022(int i, int j;
  49 
  50 record BadRecord023(int i, int j,;
  51 
  52 record BadRecord024(int i, int j,);
  53 
  54 record BadRecord025(int x)
  55 
  56 record BadRecord026 {}
  57 
  58 record BadRecord027(final int x) { }
  59 
  60 record BadRecord028(private int x) { }
  61 
  62 record BadRecord029(public int x) { }
  63 
  64 record BadRecord030(volatile int x) { }
  65 
  66 record BadRecord030(int x) {
  67     private int x() { return x; }
  68 }
  69 
  70 record R(int x) {
  71     public int x;
  72 }