diff options
Diffstat (limited to 'tests/indent/c/loop.c')
| -rw-r--r-- | tests/indent/c/loop.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/indent/c/loop.c b/tests/indent/c/loop.c new file mode 100644 index 000000000..facaebb6b --- /dev/null +++ b/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); +} |
