summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/cpp/30294-pos_shift.cpp
blob: badc9798f048ca97ed9482d48e1d9f52b46506b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
void foo()
{
	// Ensure non-shift operators aren't changed
	x = 1 +
	    2;
	x = 1
	    + 2;
	x = 1 + 2;

	// Test position of shift operator
	cout << x <<
	        y;
	cout << x <<
	        y;
	cout << x << y;
}