summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/expected/cpp/33092-squeeze_ifdef.cpp
blob: 94b20d2ecbd0e159d4fe750248f7efbca165eaef (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

#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
}