summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/expected/c/00130-minus-minus.c
blob: debe70a864adc97efca073e00845abd14465e5bd (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