diff options
Diffstat (limited to 'test/vis/insert-mode/autoindent.ref')
| -rw-r--r-- | test/vis/insert-mode/autoindent.ref | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/vis/insert-mode/autoindent.ref b/test/vis/insert-mode/autoindent.ref new file mode 100644 index 0000000..6668daf --- /dev/null +++ b/test/vis/insert-mode/autoindent.ref @@ -0,0 +1,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; + } + + } +} |
