summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/expected/cpp/33213-disable_macro.cpp
blob: 7e64f416b0edd73dacf6285f02cbfe7f87680eeb (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
#include <stdio.h>

// this macro should NOT be modified ...
#define CHK(...)   \
  do               \
  {                \
      a+=1;        \
        a=b=0;     \
          c<<1;    \
  } while (0+0)


// ... whereas this should be indented and formatted
int main()
{
	int a,b,c = 0;
	if (a < c)
	{
		c += 1;
	}
	a = b = 0;
	c << 1;
	CHK;
}