aboutsummaryrefslogtreecommitdiffstats
path: root/lua/tests/indent/c/loop.c
diff options
context:
space:
mode:
Diffstat (limited to 'lua/tests/indent/c/loop.c')
-rw-r--r--lua/tests/indent/c/loop.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/lua/tests/indent/c/loop.c b/lua/tests/indent/c/loop.c
new file mode 100644
index 000000000..facaebb6b
--- /dev/null
+++ b/lua/tests/indent/c/loop.c
@@ -0,0 +1,16 @@
+void foo(int x)
+{
+ while (x > 0) {
+ x--;
+ continue;
+ }
+
+ for (int i = 0; i < 5; ++i) {
+ x++;
+ break;
+ }
+
+ do {
+ x++;
+ } while (x < 0);
+}