From 4454459fb2ce64caaf1d0e32472ad7dcdbf3e436 Mon Sep 17 00:00:00 2001 From: Jędrzej Boczar Date: Sat, 13 Mar 2021 23:51:57 +0100 Subject: tests/indent: add basic examples for C and Rust --- lua/tests/indent/c/basic.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lua/tests/indent/c/basic.c (limited to 'lua/tests/indent/c/basic.c') diff --git a/lua/tests/indent/c/basic.c b/lua/tests/indent/c/basic.c new file mode 100644 index 000000000..b20b742d5 --- /dev/null +++ b/lua/tests/indent/c/basic.c @@ -0,0 +1,11 @@ +int foo(int x) +{ + if (x > 10) { + return x; + } else { + while (x > 0) { + x--; + } + return 0; + } +} -- cgit v1.2.3-70-g09d2