summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/input/c/pos_conditional.c
blob: 100545e5c36439647ce34d1cec9a0bbd0618a9cf (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;
}