modernc.org/ccgo/v3@v3.16.14/lib/testdata/tcc-0.9.27/tests/tests2/41_hashif.c (about)

     1  #include <stdio.h>
     2  
     3  int main()
     4  {
     5     printf("#include test\n");
     6  
     7  #if 1
     8  #if 0
     9     printf("a\n");
    10  #else
    11     printf("b\n");
    12  #endif
    13  #else
    14  #if 0
    15     printf("c\n");
    16  #else
    17     printf("d\n");
    18  #endif
    19  #endif
    20  
    21  #if 0
    22  #if 1
    23     printf("e\n");
    24  #else
    25     printf("f\n");
    26  #endif
    27  #else
    28  #if 1
    29     printf("g\n");
    30  #else
    31     printf("h\n");
    32  #endif
    33  #endif
    34  
    35  #define DEF
    36  
    37  #ifdef DEF
    38  #ifdef DEF
    39     printf("i\n");
    40  #else
    41     printf("j\n");
    42  #endif
    43  #else
    44  #ifdef DEF
    45     printf("k\n");
    46  #else
    47     printf("l\n");
    48  #endif
    49  #endif
    50  
    51  #ifndef DEF
    52  #ifndef DEF
    53     printf("m\n");
    54  #else
    55     printf("n\n");
    56  #endif
    57  #else
    58  #ifndef DEF
    59     printf("o\n");
    60  #else
    61     printf("p\n");
    62  #endif
    63  #endif
    64  
    65  #define ONE 1
    66  #define ZERO 0
    67  
    68  #if ONE
    69  #if ZERO
    70     printf("q\n");
    71  #else
    72     printf("r\n");
    73  #endif
    74  #else
    75  #if ZERO
    76     printf("s\n");
    77  #else
    78     printf("t\n");
    79  #endif
    80  #endif
    81  
    82     return 0;
    83  }
    84  
    85  /* vim: set expandtab ts=4 sw=3 sts=3 tw=80 :*/