summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/c/00505-pos_conditional.c
blob: 91f17d57f49474be5ab58f402d6d50dd6625bdf8 (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;
}