summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/expected/cpp/30324-returns.cpp
blob: d1fa77be2fd0d6cb066786c8c55f2988a2919bb7 (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
#define foo1(x) { return (x); }
#define foo2(x) { return(x); }
#define foo3(x) { return  (x); }
#define foo4(x) { return{x}; }
#define foo5(x) { return  {x}; }

#define case1(x) return (x)
#define case2(x) return(x)
#define case3(x) return  (x)
#define case4(x) return{x}
#define case5(x) return  {x}

void foo(int x)
{
	switch (x)
	{
	case 1:
		return (1);
	case 2:
		return(2);
	case 3:
		return  (3);
	case 4:
		return{4};
	case 5:
		return  {5};
	default:
		return;
	}
}