summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/c/09603-indent_ternary-1.c
blob: f920088649dab8e6373ae01aed1ebe0cb5a78057 (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
void foo(void)
{
	int a = x ? y :
	            z,
	    b = x ? (y) :
	            (z),
	    c = x ? *y :
	            *z,
	    d = x ? &y :
	            &z;


	if (x ? y :
	        z)
	{
		baz;
	}
	if (x ? (y) :
	        (z))
	{
		baz;
	}
	if (x ? *y :
	        *z)
	{
		baz;
	}
	if (x ? &y :
	        &z)
	{
		baz;
	}
}