tests/indent: add multiple C/C++ tests

This commit is contained in:
Jędrzej Boczar 2021-04-17 22:47:02 +02:00 committed by Kiyan
parent 77c97d0f8b
commit 15f0813b6e
20 changed files with 211 additions and 11 deletions

16
lua/tests/indent/c/loop.c Normal file
View file

@ -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);
}