summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/cpp/33065-Issue_3316.cpp
blob: 91ec82f0c301ada0ecd15cbd429fd3e446b3088b (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);
}