/*****************************************************************/
/**                                                             **/
/**             (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;

Result res_default ;

End;


main(argc,argv)
   int argc;
   char *argv[];
{
   Control (sample) inst1;
   int none_received1 = 0;

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

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

   Bind_STUB(inst1,argv[1],"w",Asn_1_ber);
   Give inst1 {
      res_default();
   }
   Unbind(inst1);

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

   Bind_STUB(inst1,argv[1],"r",Asn_1_ber);
   Accept inst1
   {
      On res_default()
	 none_received1 = 1;
   }
   Unbind(inst1);

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

   if (none_received1 != 1) {
      printf("   res_default() was not received\n");
      exit(1);
   }

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