summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/expected/c/00506-pos_conditional.c
blob: 239456568fb39d1a1bcda564fa9bc8633a451690 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
void foo(void)
{
	// conditional colon
	a = bar() ? 2 :
	    3;
	a = bar() ? 2 :
	    3;

	// conditional question
	a = bar() ?
	    2 : 3;
	a = bar() ?
	    2 : 3;
}