From 930cf2ab0b872539c59e7702042692f7638d4e89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Fri, 17 Feb 2017 13:36:54 +0100 Subject: test/vis: add some more tests --- vis/insert-mode/autoindent.ref | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 vis/insert-mode/autoindent.ref (limited to 'vis/insert-mode/autoindent.ref') diff --git a/vis/insert-mode/autoindent.ref b/vis/insert-mode/autoindent.ref new file mode 100644 index 0000000..6668daf --- /dev/null +++ b/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; + } + + } +} -- cgit v1.2.3