#include <perms.h>

                                                                //      1  %begin
#line 1 "regression-bugs-tmp/nestrec2.imp"
int main(int argc, char **argv) {
  _imp_initialise(argc, argv);
                                                                //      2  
                                                                //      3    %recordformat simple(%record (simple) %name next, %integer i)
#line 3 "regression-bugs-tmp/nestrec2.imp"
typedef struct SIMPLE SIMPLE;
struct SIMPLE {
   SIMPLE /*name*/*NEXT;
  int I;
};
                                                                //      4  
                                                                //      5    %integer n
#line 5 "regression-bugs-tmp/nestrec2.imp"
int N;
                                                                //      6    %record (simple) r
#line 6 "regression-bugs-tmp/nestrec2.imp"
 SIMPLE R;
                                                                //      7    
                                                                //      8    n = r_i
#line 8 "regression-bugs-tmp/nestrec2.imp"
N = R.I;
                                                                //      9    n = r_next_i
#line 9 "regression-bugs-tmp/nestrec2.imp"
N = R.NEXT->I;
                                                                //     10    n = r_next_next_i
#line 10 "regression-bugs-tmp/nestrec2.imp"
N = R.NEXT->NEXT->I;
                                                                //     11  
                                                                //     12  %endofprogram
#line 12 "regression-bugs-tmp/nestrec2.imp"
/* Remove %on %event handler here if present for this block */
return 0;
} // End of block _imp_main at level 1
#line 12 "regression-bugs-tmp/nestrec2.imp"
// End of file
