Listing 6

main()
{
   register int result;

   result = test();
   printf("test() called, testcalled = %d\n", result);
   result = test();
   printf("test() called, testcalled = %d\n", result);
   exit(0);
}