/*****************************************************************/
/**                                                             **/
/**             (C) Copyright 1992 the Regents of the           **/
/**        University of California.  All Rights Reserved.      **/
/**                                                             **/
/**        This work was produced under the sponsorship of      **/
/**         the U.S. Department of Energy.  The Government      **/
/**                retains certain rights therein.              **/
/**                                                             **/
/**                         Written by                          **/
/**         Distributed Programming Environments Project        **/
/**           Computer Software and Networking Division,        **/
/**                   Livermore Computer Center,                **/
/**            Lawrence Livermore National Laboratory           **/
/**                                                             **/
/*****************************************************************/

Interface sample;

   Invoke ike 52 Integer(2);

End;


main(argc,argv)

   int argc;
   char *argv[];
{
   Integer(2) t1;
   Data (sample) inst;

   if (argc != 2)
      exit(1);   


/***************** send it out ************************/

   Bind_STUB(inst,argv[1],"w",Asn_1_ber);
   Encode inst
   {
      4096 => Integer(2);
   }
   Unbind(inst);

/***************** receive it back ********************/

   Bind_STUB(inst,argv[1],"r",Asn_1_ber);
   Decode inst
      {
	 On Integer(2) => (t1);
      }
   Unbind(inst);

/***************** report results *********************/

   if (t1 != 4096) {
      printf("   t1 value was bad\n");
      exit(1);
   }

   printf("test completed\n");
   return(0);
}
