summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/c/01040-newline_after_endif.c
blob: 2a0cbe62f8cc285ebd0b75c2e8be35bba5ef56e1 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
int main
(
)
{
   #ifdef useJPLvelocity
      for(i = 0; i < x; i++)
         y++;
   #endif

   return (0);
} /* main */

int main
(
)
{
   if(y < 3)
      y++;

   #ifdef ABC
      if(y < 3)
         y++ // comment
   #endif

   if(y < 3)
      y++;

   y++;

   return (0);
} /* main */

int main
(
)
{
   #ifdef ABC
      if(j < y)
      {
         if(j < x)
         {
            j++;
            #ifdef XYZ
               if(j < x)
                  j++;
            #endif
         }
      }
   #endif

   return (0);
} /* main */