home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume26 / unproto / part01 / example.out < prev    next >
Encoding:
Text File  |  1991-12-07  |  1.9 KB  |  174 lines

  1. # 1 "example.c" 
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13. x
  14.  
  15.  
  16.  
  17. (baz)
  18. # 16 "example.c"
  19. struct {    struct {    int (*(*foo)())();    } foo;} baz;
  20. # 16 "example.c"
  21. {/*1*/
  22.     /* end dcls */return (0);
  23. }/*1*/
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31. foo
  32. (bar)int     (*(*bar)())();
  33. {/*1*/
  34.     int     (*baz)() = (int (*)()) 0,
  35.         y = (y * (*baz)(y)),
  36.         *(*z)() = (int *(*)()) 0;
  37.  
  38.     struct {/*2*/ int (*foo)(); }/*2*/ *(*s)() = 
  39.     (struct { int (*foo)(); } *(*)()) 0;
  40.  
  41.     /* end dcls */{/*2*/
  42.     y /* end dcls */= (y * (*baz)(y));
  43.     }/*2*/
  44.     {/*2*/
  45.     z /* end dcls */= (int *(*)()) 0;
  46.     }/*2*/
  47.     {/*2*/
  48.     s /* end dcls */= (struct { int (*foo)(); } *(*)()) 0;
  49.     }/*2*/
  50.  
  51.     return (0);
  52. }/*1*/
  53.  
  54.  
  55.  
  56. test1
  57. ()
  58. # 52 "example.c"
  59. {/*1*/
  60.     int foo2,*(*(*bar)())(),*baz();
  61. }/*1*/
  62.  
  63.  
  64.  
  65. test2
  66. (y)
  67. # 59 "example.c"
  68. char *y;
  69. # 59 "example.c"
  70. {/*1*/
  71.     int foo = 5,atoi();
  72.  
  73.     foo /* end dcls */= 5,atoi(y);
  74. }/*1*/
  75.  
  76.  
  77.  
  78. test3,test4();
  79.  
  80. test5
  81. (y)
  82. # 70 "example.c"
  83. int y;
  84. # 70 "example.c"
  85. {/*1*/
  86.     /* end dcls */{/*2*/
  87.         test3/* end dcls */;
  88.     }/*2*/
  89.     {/*2*/
  90.         test4/* end dcls */(y);
  91.     }/*2*/
  92. }/*1*/
  93.  
  94. test6[1],test7();
  95.  
  96. test7
  97. (x)
  98. # 82 "example.c"
  99. int x;
  100. # 82 "example.c"
  101. {/*1*/
  102.     /* end dcls */{/*2*/
  103.         test6/* end dcls */[1];
  104.     }/*2*/
  105.     {/*2*/
  106.         test7/* end dcls */(x);
  107.     }/*2*/
  108. }/*1*/
  109.  
  110.  
  111.  
  112. struct {/*1*/
  113.     struct {/*2*/
  114.     int (*f)(), o;
  115.     }/*2*/ bar;
  116. }/*1*/ (*baz2)() = (struct { struct { int (*f)(), o; } bar; } (*)()) 0;
  117.  
  118.  
  119.  
  120. test8
  121. (x)
  122. # 102 "example.c"
  123. {/*1*/
  124.     /* end dcls */{/*2*/
  125.     struct {/*3*/
  126.         int     foo;
  127.     }/*3*/ bar();
  128.     }/*2*/
  129.     {/*2*/
  130.     /* end dcls */do {/*3*/
  131.         int     foo;
  132.     }/*3*/ while (x);
  133.     }/*2*/
  134. }/*1*/
  135.  
  136.  
  137.  
  138. test9
  139. (bar)
  140. # 118 "example.c"
  141. char *bar;
  142. # 118 "example.c"
  143. {/*1*/
  144.     foo/* end dcls */(*bar);
  145. }/*1*/
  146.  
  147.  
  148.  
  149. test10
  150. (x)
  151. # 125 "example.c"
  152. int x;
  153. # 125 "example.c"
  154. {/*1*/
  155.     /* end dcls */{/*2*/
  156.     int test10();
  157.     /* end dcls */do  test10(x);
  158.     while (x);
  159.     }/*2*/
  160.     {/*2*/
  161.     /* end dcls */return test10(x);
  162.     }/*2*/
  163. }/*1*/
  164.  
  165. test11
  166. (x)
  167. # 137 "example.c"
  168. int *x;
  169. # 137 "example.c"
  170. {/*1*/
  171.     /* end dcls */while (*x)
  172.         (putchar(*x++));
  173. }/*1*/
  174.