summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/c/minus-minus.c
blob: 4eb6923738996323ce11c3f0dfddf8763b2ac1d8 (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
int a = 5;
int *b = &a;
int negneg(void)
{
   return - -a;
}

int pospos(void)
{
   return + +a;
}

int negpos(void)
{
   return - +a;
}

int posneg(void)
{
   return + -a;
}

#if VERSION < -5
int negnegneg(void)
{
   return - - -a;
}
#else
int negat(void)
{
   return - *b;
}
#endif