summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/c/indent_ternary-2.c
blob: 20f1df64926b076d46c4a5d98cd39eb7c8bf58f4 (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;
    }           
}