"Fossies" - the Fresh Open Source Software Archive

Member "dateutils-0.4.6/test/enum-1.c" (19 Mar 2019, 545 Bytes) of package /linux/privat/dateutils-0.4.6.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #if defined HAVE_CONFIG_H
    2 # include "config.h"
    3 #endif  /* HAVE_CONFIG_H */
    4 #include <stdio.h>
    5 #include "dt-core.h"
    6 
    7 int
    8 main(void)
    9 {
   10     int res = 0;
   11 
   12     if ((unsigned int)DT_PACK != (unsigned int)DT_NDTYP) {
   13         fprintf(stderr, "DT_PACK %u != DT_NDTYP %u\n",
   14             (unsigned int)DT_PACK, (unsigned int)DT_NDTYP);
   15         res = 1;
   16     }
   17     if ((unsigned int)DT_SEXY != (unsigned int)(DT_NDTYP + 1U)) {
   18         fprintf(stderr, "DT_SEXY %u != DT_NTYP + 1 %u\n",
   19             (unsigned int)DT_SEXY, (unsigned int)(DT_NDTYP + 1U));
   20         res = 1;
   21     }
   22     return res;
   23 }
   24 
   25 /* enum-1.c ends here */