/*****************************************************************************/
/*                                                                           */
/*  Test Function(s) :      Miscellaneous Concepts                           */
/*                          1.1.2.3 identifiers                              */
/*  Product and Revision :  Unix 1.4                                         */
/*  Author :                Tina Aleksa                                      */
/*  Date :                  6/19/84                                          */
/*  Source File :           source/misc.112327.c                             */
/*  Revisions :             03/12/84    Sqa     Original UTX-32 1.0 Release  */
/*                          05/24/84    T. Aleksa        UTX-32 1.0 Release  */
/*                          -- Added comment in test.                        */
/*                                                                           */
/*                          08/24/89  M. Pheterson  MPX-32                   */
/*                          Changed output because entry is not reserved.    */
 
/*  Description :           Verify that keyword entry is a reserved word     */
/*                          and cannot be used as an identifier.             */
/*                          This is test 27 of 29 tests that verify that     */
/*                          keywords are reserved.                           */
/*                          The compiler fails if this program can be        */
/*                          compiled.                                        */
/*  Test Operation :        This 'c' source file is compiled and executed    */
/*                          under the control of the shell command file      */
/*                           ../shell/misc.11.j                              */
/*                                                                           */
/*  Associated Files :      Any results are reported to the default output   */
/*                          device.                                          */
/*                                                                           */
/*****************************************************************************/
 
/*   On page 180 of "The C Programming Language" by Kernighan and Ritchie, it
     is documented that " The entry keyword is not currently implemented by
     any compiler but is reserved for future use ".  Therefore, the compiler
     fails to recognize entry as a reserved word, as the test result indicates.
     Check documentation.  This test has been modified to pass if it
     compiles correctly.
*/
 
#include <stdio.h>
main()
{
 
          float entry = 0 ;
          FILE *fp;
          fp=fopen("misc_res bloc=y","a");
 
 
Entry:
 
/*  Use the following code if entry is a reserved word:
 
        fprintf(fp,"  ** miscellaneous, identifiers 1.1.2.3-27 class 3 fail - exit return code : entry\n ");
        printf("  ** miscellaneous, identifiers 1.1.2.3-27 class 3 fail - exit return code : entry\n ");
             fclose(fp);
 
Else use:                                                          */
 
        fprintf(fp,"  ** miscellaneous, identifiers 1.1.2.3-27 class 3 pass\n ");
        printf("  ** miscellaneous, identifiers 1.1.2.3-27 class 3 pass\n ");
             fclose(fp);
 
}
