aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/c/preproc_func.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/indent/c/preproc_func.c')
-rw-r--r--tests/indent/c/preproc_func.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/indent/c/preproc_func.c b/tests/indent/c/preproc_func.c
new file mode 100644
index 000000000..f1f38feb9
--- /dev/null
+++ b/tests/indent/c/preproc_func.c
@@ -0,0 +1,9 @@
+#define FOO(x) do { \
+ x = x + 1; \
+ x = x / 2; \
+ } while (x > 0);
+
+void foo(int x)
+{
+ FOO(x);
+}