summaryrefslogtreecommitdiff
path: root/test/vis/insert-mode/autoindent.ref
blob: 6668dafdf4a6e7a39b4f37c2859bd358d2c88cf0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
int foo(int a) {

	// optimized loop
	for (;;) {

		if (a > 0) {
			// positive

			return --a;
		} else if (a < 0) {
			// negative

			return ++a;
		} else {
			// equal

			return a;
		}

	}
}