summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.0/tests/input/cpp/pos_shift.cpp
blob: 4d55a541197eeea23165fe8f65f9d0e79d470346 (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;
}