summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/expected/c/09604-indent_ternary-2.c
blob: e6d3576cb32ab0e789dff7bb4a09c67e35831483 (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;
	}
}