summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/input/cpp/bug_1004.cpp
blob: 3287be1c34df6f6c7f814fcad3849df3e97d5155 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
int main()
{
        int  b = 3;
        int* p = &b;

        // Should stay as b * *p
        int a = b * *p;

        // Correctly formats as a * b;
        int c = b*a;

        // Correctly formats as d = *p;
        int d = * p;
}