summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/c/10066-Issue_3580.c
blob: c2baeb12be178a4d3bab18e948c402cc3b555e21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include <stdio.h>

int main(int argc, char **argv)
{
    switch (argc)
    {
    case -1:
  {
      printf("Negative args shouldn't be possible\n");
      break;
  }
    case 0:
    {
        printf("Zero args can happen but shouldn't\n");
        break;
    }
    case 1:
      {
          printf("One arg\n");
          break;
      }
    case 2:
        {
            printf("Two args\n");
            break;
        }
    default:
          {
              printf("%i args\n", argc);
              break;
          }
    }

    return 0;
}