summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/input/c/indent_ternary-1.c
blob: b76e375b6ce778af529be28ca91e01518308e674 (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;
    }           
}