github.com/Konstantin8105/c4go@v0.0.0-20240505174241-768bb1c65a51/tests/ast/ast.c (about)

     1  struct xx {
     2      int i;
     3      /**
     4  	 * Text
     5  	 */
     6      struct yy {
     7          int j;
     8          struct zz {
     9              int k;
    10          } deep;
    11      } inner;
    12  };
    13  
    14  int main() {
    15  	int i = 0;
    16  	int j = 1;
    17  	if (i > j)
    18  		return 1;
    19  	if (i == j){
    20  		return 2;
    21  	}
    22  
    23  	//////////////
    24      int value = 1;
    25      while (value <= 3) {
    26          value++;
    27      }
    28  
    29  	//////////////
    30      switch (1) {
    31      case 5:
    32          break;
    33      case 2:
    34          break;
    35      }
    36  
    37      for (; i < 30; i++)
    38  	{
    39  	}
    40  
    41  	return 0;
    42  }
    43  
    44  int i = 40;
    45  
    46  void function()
    47  {
    48      i += 2;
    49  }
    50  
    51  /* Text */
    52  enum number { zero,
    53      one,
    54      two,
    55      three };
    56