summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/input/c/Issue_3580.c
blob: 2b6b7e433d285403ed265514cc9886391ee635be (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;
}