#include <perms.h>

//          Edinburgh IMP77 Compiler - Version 8.4
//
//     1  %begin

int main(int argc, char **argv) { /*%begin*/
  _imp_initialise(argc, argv);

  //     2    %recordformat simple(%integer a, b)

  struct SIMPLE {
    union {
      struct {
        int A;
        int B;
      };
    };
  };

  //     3
  //     4    %record (simple) rec

  struct SIMPLE REC;

  //     5    %record (simple) %name ptr

  struct SIMPLE *PTR;

  //     6
  //     7    rec = 0

  REC = (struct SIMPLE){0};

  //     8
  //     9    rec_a = 1

  REC.A = 1;

  //    10    rec_b = rec_a

  REC.B = REC.A;

  //    11    ptr_a = 2

  PTR->A = 2;

  //    12    ptr_b = ptr_a

  PTR->B = PTR->A;

  //    13
  //    14  %endofprogram

  _imp_stop(0);
  return 0;
end_0:;
}