summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/expected/cpp/33096-squeeze_ifdef.cpp
blob: df3d90ab45e95add48cbdcf438067f27b2370e97 (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

#if defined(A)
// Comment
extern int ax;
void fa();
#elif defined(B)
extern int bx;
void fb();
#else
extern int cx;
void fc();
#endif

int foo()
{
#if defined(A)
	int a = ax;
#elif defined(B)
	// Comment
	int b = bx;
#else
	int c = cx;
#endif
#if defined(A)
	return a;
#elif defined(B)
	return b;
#else
	// Comment
	return c;
#endif
}