home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cproto.zip / cproto46 / testing / case22.ref < prev    next >
Text File  |  1996-05-30  |  3KB  |  259 lines

  1. /* LINTLIBRARY */
  2.  
  3. /* case22.c */
  4.  
  5. typedef    int    x4t;
  6.  
  7. #undef x6
  8. char    x6;
  9. #undef x7
  10. short    x7;
  11. #undef x8
  12. int    x8;
  13. #undef x9
  14. long    x9;
  15. #undef x10
  16. float    x10;
  17. #undef x11
  18. double    x11;
  19. #undef x12
  20. signed    x12;
  21. #undef x13
  22. unsigned x13;
  23.  
  24. struct x14;
  25.  
  26. union x15;
  27.  
  28. enum x16;
  29.  
  30. x4t;
  31.  
  32. #undef x17
  33. x4t    x17;
  34. #undef x18
  35. const    x18 = {0};
  36. #undef x19
  37. volatile x19;
  38.  
  39. typedef    struct    _first    {
  40.     int        a:5;
  41.     struct    {
  42.         int    a,b;
  43.     } b_struct;
  44.     char        b:16, b1:1;    
  45.     long        c:16, c1;
  46.     short        d:16, d1:8, d2;
  47.     unsigned    e:16;
  48.     float        f;
  49.     double        g;
  50.     struct    _first    *link;
  51.     }    _FIRST;
  52.  
  53. #undef first
  54. _FIRST    first;
  55. #undef last
  56. _FIRST    last;
  57. #undef first_last
  58. _FIRST    first_last[];
  59. #undef _SECOND
  60. struct    _second    {
  61.         enum    {true, false} bool;
  62.         enum    {wrong=1, right=3} values;
  63.     } _SECOND;
  64. #undef i
  65. int    i[];
  66. #undef f
  67. float    f[];
  68. #undef array
  69. int    array[][10][20];
  70.  
  71. #undef dots_0
  72. int    dots_0(
  73.         int    p1)
  74.         { return(*(int *)0); }
  75.  
  76. #undef dots_1
  77. int    dots_1(
  78.         int    p1, 
  79.         ...)
  80.         { return(*(int *)0); }
  81.  
  82. #undef dots_3
  83. int    dots_3(
  84.         int    p1, 
  85.         char    p2, 
  86.         ...)
  87.         { return(*(int *)0); }
  88.  
  89. #undef func1
  90. _FIRST    *func1(void)
  91.         { return(*(_FIRST **)0); }
  92.  
  93. #undef func2
  94. _FIRST    *func2(
  95.         _FIRST    *p1, 
  96.         int    p2[], 
  97.         float    p)
  98.         { return(*(_FIRST **)0); }
  99.  
  100. #undef func_func
  101. int    *(func_func)(void);
  102.  
  103. typedef    int    bool;
  104.  
  105. #undef a1
  106. bool    a1;
  107.  
  108. struct    ZIP1    { int x1, y1; };
  109.  
  110. #undef z2
  111. struct    zip2    { int x2, y2; } z2;
  112. #undef z3
  113. struct        { int x3, y3; } z3;
  114.  
  115. struct    ZIP4    { int x4, y4; };
  116.  
  117. #undef what
  118. enum    zap1    { a,b,c,d } what;
  119. #undef what2
  120. enum zap2 what2;
  121. #undef what3
  122. enum        {a9,b9,c9,d9} what3;
  123.  
  124. typedef    struct    bong    {
  125.     int    (*func)();
  126.     } BONG;
  127.  
  128. typedef    char    *string;
  129.  
  130. #undef main
  131. void    main(
  132.         int    argc, 
  133.         char    **argv)
  134.         { /* void */ }
  135.  
  136.     /* VARARGS */
  137. #undef veryfunny
  138. int    veryfunny(
  139.         char    *a, 
  140.         long    b, 
  141.         long    c)
  142.         { return(*(int *)0); }
  143.  
  144.     /* VARARGS3 */
  145. #undef program
  146. int    program(
  147.         string    argv[], 
  148.         struct    alpha { int x,z; } y, 
  149.         int    zz, 
  150.         int    z1, 
  151.         int    z2, 
  152.         int    z3)
  153.         { return(*(int *)0); }
  154.  
  155. #undef junk0
  156. void    junk0(void)
  157.         { /* void */ }
  158.  
  159. #undef junk1
  160. int    junk1(void)
  161.         { return(*(int *)0); }
  162.  
  163. #undef junk2
  164. void    junk2(void)
  165.         { /* void */ }
  166.  
  167. #undef junk3
  168. int    junk3(void)
  169.         { return(*(int *)0); }
  170.  
  171. #undef junk4
  172. BONG    *junk4(void)
  173.         { return(*(BONG **)0); }
  174.  
  175. typedef    int    extern_junk;
  176.  
  177. #undef foo
  178. extern_junk *foo(void)
  179.         { return(*(extern_junk **)0); }
  180.  
  181. typedef    int    void_junk;
  182.  
  183. #undef foo2a
  184. void_junk *foo2a(void)
  185.         { return(*(void_junk **)0); }
  186.  
  187. #undef foo2
  188. void_junk *foo2(void)
  189.         { return(*(void_junk **)0); }
  190.  
  191. #undef foo_void
  192. void_junk *foo_void(
  193.         void_junk void_int)
  194.         { return(*(void_junk **)0); }
  195.  
  196. #undef Sigdisp
  197. void    (*Sigdisp(
  198.         int    sig, 
  199.         void    (*func)(
  200.         int    sig)))(
  201.         int    sig1)
  202.         { return(*(void(*)())0); }
  203.  
  204. #undef sigdisp2
  205. void    (*sigdisp2(
  206.         int    sig, 
  207.         void    (*func)(
  208.         int    sig)))(
  209.         int    sig2)
  210.         { return(*(void(*)())0); }
  211.  
  212. #undef K_R_INT_ptr
  213. int    (*K_R_INT_ptr(
  214.         long    *p1, 
  215.         int    p2))(void)
  216.         { return(*(int(*)())0); }
  217.  
  218. #undef K_R_VOID_ptr
  219. void    (*K_R_VOID_ptr(
  220.         long    *p1, 
  221.         int    p2))(void)
  222.         { return(*(void(*)())0); }
  223.  
  224. #undef K_R_int_ptr
  225. int    *K_R_int_ptr(
  226.         long    *p1, 
  227.         int    p2)
  228.         { return(*(int **)0); }
  229.  
  230. #undef K_R_void_ptr
  231. void    *K_R_void_ptr(
  232.         long    *p1, 
  233.         int    p2)
  234.         { return(*(void **)0); }
  235.  
  236. #undef K_R_int_val
  237. int    K_R_int_val(
  238.         long    *p1, 
  239.         int    p2)
  240.         { return(*(int *)0); }
  241.  
  242. #undef K_R_int_val2
  243. int    K_R_int_val2(
  244.         long    *p1, 
  245.         int    p2)
  246.         { return(*(int *)0); }
  247.  
  248. #undef K_R_void_val
  249. void    K_R_void_val(
  250.         long    *p1, 
  251.         int    p2)
  252.         { /* void */ }
  253.  
  254. #undef K_R_void_val2
  255. void    K_R_void_val2(
  256.         long    *p1, 
  257.         int    p2)
  258.         { /* void */ }
  259.