summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/cpp/Issue_3316.cpp
blob: ee644d216488cf7da93b77c7b1d8b7e0a75f3f6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <iostream>

bool
foo()
{
    const int i = 3;

    if ( i == 2 || i == 3 || i == 5 ) {
        std::cerr << "Very small prime!\n";
    }

    const auto isSmallPrime = i == 2 || i == 3 || i == 5 || i == 7 || i == 11;

    return isSmallPrime || i == 13 || i == 17 || i == 19;
}